From 034339320f52a646f19db57b7123c53b4b26b348 Mon Sep 17 00:00:00 2001 From: "Carlos R. Mafra" Date: Tue, 16 Mar 2010 16:27:43 +0100 Subject: [PATCH] Constify the argument of wstrdup() --- WINGs/WINGs/WUtil.h | 2 +- WINGs/string.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/WINGs/WINGs/WUtil.h b/WINGs/WINGs/WUtil.h index dbf7074a..347e70ee 100644 --- a/WINGs/WINGs/WUtil.h +++ b/WINGs/WINGs/WUtil.h @@ -245,7 +245,7 @@ void wfree(void *ptr); void wrelease(void *ptr); void* wretain(void *ptr); -char* wstrdup(char *str); +char *wstrdup(const char *str); char* wstrndup(char *str, size_t len); /* Concatenate str1 with str2 and return that in a newly malloc'ed string. diff --git a/WINGs/string.c b/WINGs/string.c index 70277c8a..956ad3a5 100644 --- a/WINGs/string.c +++ b/WINGs/string.c @@ -163,7 +163,7 @@ char *wtrimspace(char *s) return c; } -char *wstrdup(char *str) +char *wstrdup(const char *str) { assert(str != NULL);