From 12ecd8b127f4f576b37278eeaff07a12e73b7110 Mon Sep 17 00:00:00 2001 From: Adam Dickmeiss Date: Tue, 20 Feb 1996 17:58:09 +0000 Subject: [PATCH] Added const to yaz_matchstr. --- include/yaz-util.h | 7 +++++-- util/yaz-util.c | 7 +++++-- 2 files changed, 10 insertions(+), 4 deletions(-) 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) { -- 1.7.10.4