xstrdup now takes a const pointer as an argument.
This commit is contained in:
parent
54ef13bf75
commit
8ea23d9ec3
2 changed files with 2 additions and 2 deletions
|
@ -23,4 +23,4 @@ void *xmalloc_and_zero PARAMS ((size_t n));
|
|||
void *xcalloc PARAMS ((size_t n, size_t s));
|
||||
void *xrealloc PARAMS ((void *p, size_t n));
|
||||
|
||||
char *xstrdup PARAMS ((char *s));
|
||||
char *xstrdup PARAMS ((const char *s));
|
||||
|
|
|
@ -127,7 +127,7 @@ xrealloc (p, n)
|
|||
|
||||
/* Duplicate a string */
|
||||
|
||||
char *xstrdup(char *s)
|
||||
char *xstrdup(const char *s)
|
||||
{
|
||||
char *p;
|
||||
|
||||
|
|
Loading…
Reference in a new issue