From: Philipp Takacs Date: Sun, 5 Mar 2017 16:55:31 +0000 (+0100) Subject: add() first parameter (s2) is now const X-Git-Tag: mmh-0.4~45 X-Git-Url: http://git.marmaro.de/?a=commitdiff_plain;h=eb650f703c26232c0ccce00c9b3dd3f6b6d51dd4;p=mmh add() first parameter (s2) is now const --- diff --git a/h/utils.h b/h/utils.h index bed9188..13964b2 100644 --- a/h/utils.h +++ b/h/utils.h @@ -6,7 +6,7 @@ void *mh_xrealloc(void *, size_t); void *mh_xcalloc(size_t, size_t); void mh_free0(void *); char *pwd(void); -char *add(char *, char *); +char *add(const char *, char *); void create_folder(char *, int, void (*)(int)); int num_digits(int); char *mh_xstrdup(char *); diff --git a/sbr/utils.c b/sbr/utils.c index 466b9ab..ef0ee97 100644 --- a/sbr/utils.c +++ b/sbr/utils.c @@ -114,7 +114,7 @@ pwd(void) ** -- malloc'ed memory. Then free "s1". */ char * -add(char *s2, char *s1) +add(const char *s2, char *s1) { char *cp; size_t len1 = 0, len2 = 0;