From: Adam Dickmeiss Date: Mon, 19 Nov 2001 23:08:29 +0000 (+0000) Subject: Added const qualifier for name parameter of key_SU_decode. X-Git-Tag: ZEBRA.1.1.stable~5 X-Git-Url: http://jsfdemo.indexdata.com/cgi-bin?a=commitdiff_plain;h=da5e43382ca16244e96457aa700c30e9b3178191;p=idzebra-moved-to-github.git Added const qualifier for name parameter of key_SU_decode. --- diff --git a/index/index.h b/index/index.h index d5e46db..aba2cbc 100644 --- a/index/index.h +++ b/index/index.h @@ -160,7 +160,7 @@ void zebra_lock_prefix (Res res, char *dst); void zebra_load_atts (data1_handle dh, Res res); -int key_SU_decode (int *ch, unsigned char *out); +int key_SU_decode (int *ch, const unsigned char *out); int key_SU_encode (int ch, char *out); extern Res common_resource; @@ -170,7 +170,10 @@ YAZ_END_CDECL #endif /* * $Log: index.h,v $ - * Revision 1.71 2001-11-19 23:05:22 adam + * Revision 1.72 2001-11-19 23:08:29 adam + * Added const qualifier for name parameter of key_SU_decode. + * + * Revision 1.71 2001/11/19 23:05:22 adam * Added a few prototypes. * * Revision 1.70 2000/12/05 10:01:44 adam diff --git a/index/kcompare.c b/index/kcompare.c index da913f7..5d74547 100644 --- a/index/kcompare.c +++ b/index/kcompare.c @@ -278,7 +278,7 @@ int key_SU_encode (int ch, char *out) */ } -int key_SU_decode (int *ch, unsigned char *out) +int key_SU_decode (int *ch, const unsigned char *out) { int len = 1; int fact = 1; @@ -294,7 +294,10 @@ int key_SU_decode (int *ch, unsigned char *out) /* * $Log: kcompare.c,v $ - * Revision 1.36 2001-10-15 19:53:43 adam + * Revision 1.37 2001-11-19 23:08:30 adam + * Added const qualifier for name parameter of key_SU_decode. + * + * Revision 1.36 2001/10/15 19:53:43 adam * POSIX thread updates. First work on term sets. * * Revision 1.35 1999/11/30 13:48:03 adam