Made argument of s_strdup const

This commit is contained in:
lucas8 2014-07-31 23:57:50 +02:00 committed by Bert Münnich
parent bb6721549b
commit 3b8a79fb8b
3 changed files with 3 additions and 3 deletions

View File

@ -1,4 +1,4 @@
VERSION = git-20140728
VERSION = git-20140801
PREFIX = /usr/local
MANPREFIX = $(PREFIX)/share/man

2
util.c
View File

@ -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;

2
util.h
View File

@ -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*, ...);