diff options
author | lucas8 <luc.linux@mailoo.org> | 2014-07-31 23:57:50 +0200 |
---|---|---|
committer | Bert Münnich <ber.t@posteo.de> | 2014-08-01 20:29:06 +0200 |
commit | 3b8a79fb8bcde81966514d6a8af18f9db015b3df (patch) | |
tree | d5d2d4402c4e00a97494606d63ea101bb89bdbb1 | |
parent | bb6721549b30c33b0080975aa19a0b02a916c7e5 (diff) |
Made argument of s_strdup const
-rw-r--r-- | Makefile | 2 | ||||
-rw-r--r-- | util.c | 2 | ||||
-rw-r--r-- | util.h | 2 |
3 files changed, 3 insertions, 3 deletions
@@ -1,4 +1,4 @@ -VERSION = git-20140728 +VERSION = git-20140801 PREFIX = /usr/local MANPREFIX = $(PREFIX)/share/man @@ -54,7 +54,7 @@ void* s_realloc(void *ptr, size_t size) return ptr; } -char* s_strdup(char *s) +char* s_strdup(const char *s) { char *d = NULL; @@ -63,7 +63,7 @@ typedef struct { void* s_malloc(size_t); void* s_realloc(void*, size_t); -char* s_strdup(char*); +char* s_strdup(const char*); void warn(const char*, ...); void die(const char*, ...); |