From: Adam Dickmeiss Date: Tue, 20 Feb 1996 17:57:53 +0000 (+0000) Subject: Added const to oid_getvalbyname. X-Git-Tag: YAZ.1.8~792 X-Git-Url: http://lists.indexdata.dk/?a=commitdiff_plain;h=ec28e95aa1800749663124d88106bc86b28b8ada;p=yaz-moved-to-github.git Added const to oid_getvalbyname. --- diff --git a/include/oid.h b/include/oid.h index 64af528..a465b75 100644 --- a/include/oid.h +++ b/include/oid.h @@ -24,7 +24,10 @@ * OF THIS SOFTWARE. * * $Log: oid.h,v $ - * Revision 1.12 1996-02-20 12:52:37 quinn + * Revision 1.13 1996-02-20 17:57:53 adam + * Added const to oid_getvalbyname. + * + * Revision 1.12 1996/02/20 12:52:37 quinn * Various * * Revision 1.11 1996/01/02 08:57:30 quinn @@ -169,6 +172,6 @@ void oid_oidcpy(int *t, int *s); void oid_oidcat(int *t, int *s); int oid_oidcmp(int *o1, int *o2); int oid_oidlen(int *o); -oid_value oid_getvalbyname(char *name); +oid_value oid_getvalbyname(const char *name); #endif diff --git a/util/oid.c b/util/oid.c index 44bab89..f3d2993 100644 --- a/util/oid.c +++ b/util/oid.c @@ -4,7 +4,10 @@ * Sebastian Hammer, Adam Dickmeiss * * $Log: oid.c,v $ - * Revision 1.13 1996-02-20 16:37:33 quinn + * Revision 1.14 1996-02-20 17:58:28 adam + * Added const to oid_getvalbyname. + * + * Revision 1.13 1996/02/20 16:37:33 quinn * Using yaz_matchstr in oid_getvalbyname * * Revision 1.12 1996/01/02 08:57:53 quinn @@ -300,7 +303,7 @@ int *oid_getoidbyent(struct oident *ent) return 0; } -oid_value oid_getvalbyname(char *name) +oid_value oid_getvalbyname(const char *name) { struct oident *p;