]> git.marmaro.de Git - mmh/commitdiff
add() first parameter (s2) is now const
authorPhilipp Takacs <philipp@bureaucracy.de>
Sun, 5 Mar 2017 16:55:31 +0000 (17:55 +0100)
committerPhilipp Takacs <philipp@bureaucracy.de>
Tue, 7 Mar 2017 14:09:50 +0000 (15:09 +0100)
h/utils.h
sbr/utils.c

index bed9188c6fcdbe3aeaa497d7c91118068a047f14..13964b2316c725e0434fccd07181923183d71ecd 100644 (file)
--- 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 *);
index 466b9aba2627e7c4f1e6d9d384e2ca69e83063e4..ef0ee9738676d018b9c191f3d339cf89593b04ff 100644 (file)
@@ -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;