aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorlucas8 <luc.linux@mailoo.org>2014-07-31 23:57:50 +0200
committerBert Münnich <ber.t@posteo.de>2014-08-01 20:29:06 +0200
commit3b8a79fb8bcde81966514d6a8af18f9db015b3df (patch)
treed5d2d4402c4e00a97494606d63ea101bb89bdbb1
parentbb6721549b30c33b0080975aa19a0b02a916c7e5 (diff)
Made argument of s_strdup const
-rw-r--r--Makefile2
-rw-r--r--util.c2
-rw-r--r--util.h2
3 files changed, 3 insertions, 3 deletions
diff --git a/Makefile b/Makefile
index 3350679..991cc35 100644
--- a/Makefile
+++ b/Makefile
@@ -1,4 +1,4 @@
-VERSION = git-20140728
+VERSION = git-20140801
PREFIX = /usr/local
MANPREFIX = $(PREFIX)/share/man
diff --git a/util.c b/util.c
index 4e48f17..c7b3bc8 100644
--- a/util.c
+++ b/util.c
@@ -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;
diff --git a/util.h b/util.h
index e7a567d..a62043b 100644
--- a/util.h
+++ b/util.h
@@ -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*, ...);