xstrdup now takes a const pointer as an argument.

This commit is contained in:
Ivo Timmermans 2000-11-29 14:23:08 +00:00
parent 54ef13bf75
commit 8ea23d9ec3
2 changed files with 2 additions and 2 deletions

View file

@ -23,4 +23,4 @@ void *xmalloc_and_zero PARAMS ((size_t n));
void *xcalloc PARAMS ((size_t n, size_t s)); void *xcalloc PARAMS ((size_t n, size_t s));
void *xrealloc PARAMS ((void *p, size_t n)); void *xrealloc PARAMS ((void *p, size_t n));
char *xstrdup PARAMS ((char *s)); char *xstrdup PARAMS ((const char *s));

View file

@ -127,7 +127,7 @@ xrealloc (p, n)
/* Duplicate a string */ /* Duplicate a string */
char *xstrdup(char *s) char *xstrdup(const char *s)
{ {
char *p; char *p;