From 3b8a79fb8bcde81966514d6a8af18f9db015b3df Mon Sep 17 00:00:00 2001 From: lucas8 Date: Thu, 31 Jul 2014 23:57:50 +0200 Subject: Made argument of s_strdup const --- Makefile | 2 +- util.c | 2 +- util.h | 2 +- 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*, ...); -- cgit v1.2.3