[Cvs-nserver-commits] CVS: cvs-nserver/acl stringbuf.c,1.1.2.6,1.1.2.7 stringbuf.h,1.1.2.4,1.1.2.5
Brought to you by:
tyranny
From: Alexey M. <ty...@us...> - 2002-05-25 20:41:43
|
Update of /cvsroot/cvs-nserver/cvs-nserver/acl In directory usw-pr-cvs1:/tmp/cvs-serv2461 Modified Files: Tag: NCLI-1-11-1 stringbuf.c stringbuf.h Log Message: Add `const' qualifiers Index: stringbuf.c =================================================================== RCS file: /cvsroot/cvs-nserver/cvs-nserver/acl/Attic/stringbuf.c,v retrieving revision 1.1.2.6 retrieving revision 1.1.2.7 diff -u -d -r1.1.2.6 -r1.1.2.7 --- stringbuf.c 9 May 2002 15:09:12 -0000 1.1.2.6 +++ stringbuf.c 25 May 2002 20:41:38 -0000 1.1.2.7 @@ -14,7 +14,7 @@ #endif struct stringbuf * -new_stringbuf (char *str) +new_stringbuf (const char *str) { struct stringbuf *sb; size_t allocated; @@ -104,7 +104,7 @@ } struct stringbuf * -cat_stringbuf (struct stringbuf *buf, char *str) +cat_stringbuf (struct stringbuf *buf, const char *str) { size_t len; Index: stringbuf.h =================================================================== RCS file: /cvsroot/cvs-nserver/cvs-nserver/acl/Attic/stringbuf.h,v retrieving revision 1.1.2.4 retrieving revision 1.1.2.5 diff -u -d -r1.1.2.4 -r1.1.2.5 --- stringbuf.h 9 May 2002 15:09:12 -0000 1.1.2.4 +++ stringbuf.h 25 May 2002 20:41:39 -0000 1.1.2.5 @@ -3,7 +3,7 @@ #define STRINGBUF_H 1 #ifdef HAVE_CONFIG_H -#include "config.h" +#include <config.h> #endif /* stdlib.h includes stddef.h which in turn defines size_t */ @@ -19,7 +19,7 @@ typedef struct stringbuf stringbuf; -struct stringbuf *new_stringbuf (char *str); +struct stringbuf *new_stringbuf (const char *str); void free_stringbuf (struct stringbuf *buf); @@ -27,7 +27,7 @@ struct stringbuf *catc_stringbuf (struct stringbuf *buf, char c); -struct stringbuf *cat_stringbuf (struct stringbuf *buf, char *str); +struct stringbuf *cat_stringbuf (struct stringbuf *buf, const char *str); struct stringbuf *shrink_stringbuf (struct stringbuf *buf, size_t newlen); |