From: Adam Dickmeiss Date: Tue, 20 Feb 1996 17:58:09 +0000 (+0000) Subject: Added const to yaz_matchstr. X-Git-Tag: YAZ.1.8~791 X-Git-Url: http://git.indexdata.com/?p=yaz-moved-to-github.git;a=commitdiff_plain;h=12ecd8b127f4f576b37278eeaff07a12e73b7110 Added const to yaz_matchstr. --- diff --git a/include/yaz-util.h b/include/yaz-util.h index 94ef3a1..92a80b2 100644 --- a/include/yaz-util.h +++ b/include/yaz-util.h @@ -4,7 +4,10 @@ * Sebastian Hammer, Adam Dickmeiss * * $Log: yaz-util.h,v $ - * Revision 1.1 1996-02-20 16:32:49 quinn + * Revision 1.2 1996-02-20 17:58:09 adam + * Added const to yaz_matchstr. + * + * Revision 1.1 1996/02/20 16:32:49 quinn * Created util file. * * @@ -13,6 +16,6 @@ #ifndef YAZ_UTIL_H #define YAZ_UTIL_H -int yaz_matchstr(char *s1, char *s2); +int yaz_matchstr(const char *s1, const char *s2); #endif diff --git a/util/yaz-util.c b/util/yaz-util.c index 87fb1d5..e16750e 100644 --- a/util/yaz-util.c +++ b/util/yaz-util.c @@ -4,7 +4,10 @@ * Sebastian Hammer, Adam Dickmeiss * * $Log: yaz-util.c,v $ - * Revision 1.1 1996-02-20 16:33:06 quinn + * Revision 1.2 1996-02-20 17:58:42 adam + * Added const to yaz_matchstr. + * + * Revision 1.1 1996/02/20 16:33:06 quinn * Moved matchstr to global util * * Revision 1.1 1995/11/01 11:56:08 quinn @@ -21,7 +24,7 @@ * the various subsystems if we get a bottleneck here. */ -int yaz_matchstr(char *s1, char *s2) +int yaz_matchstr(const char *s1, const char *s2) { while (*s1 && *s2) {