1
0
mirror of https://github.com/gryf/wmaker.git synced 2025-12-19 20:38:08 +01:00

Constify the argument of wstrdup()

This commit is contained in:
Carlos R. Mafra
2010-03-16 16:27:43 +01:00
parent de881d9c03
commit 034339320f
2 changed files with 2 additions and 2 deletions

View File

@@ -245,7 +245,7 @@ void wfree(void *ptr);
void wrelease(void *ptr); void wrelease(void *ptr);
void* wretain(void *ptr); void* wretain(void *ptr);
char* wstrdup(char *str); char *wstrdup(const char *str);
char* wstrndup(char *str, size_t len); char* wstrndup(char *str, size_t len);
/* Concatenate str1 with str2 and return that in a newly malloc'ed string. /* Concatenate str1 with str2 and return that in a newly malloc'ed string.

View File

@@ -163,7 +163,7 @@ char *wtrimspace(char *s)
return c; return c;
} }
char *wstrdup(char *str) char *wstrdup(const char *str)
{ {
assert(str != NULL); assert(str != NULL);