From eb650f703c26232c0ccce00c9b3dd3f6b6d51dd4 Mon Sep 17 00:00:00 2001 From: Philipp Takacs Date: Sun, 5 Mar 2017 17:55:31 +0100 Subject: [PATCH] add() first parameter (s2) is now const --- h/utils.h | 2 +- sbr/utils.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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; -- 1.7.10.4