diff options
author | Christian Neukirchen <chneukirchen@gmail.com> | 2015-09-01 15:23:18 +0200 |
---|---|---|
committer | Christian Neukirchen <chneukirchen@gmail.com> | 2015-09-01 15:23:49 +0200 |
commit | 63f96b514455ac9433a52bff2c2e49218b0d9c0d (patch) | |
tree | 8125b4e59787bf8e7bf9904681c5049d59f0291d /redo.c | |
parent | f6de01a6862cd982b9ec97064b23895ab6d9e22c (diff) | |
download | redo-c-63f96b514455ac9433a52bff2c2e49218b0d9c0d.tar.gz redo-c-63f96b514455ac9433a52bff2c2e49218b0d9c0d.tar.xz redo-c-63f96b514455ac9433a52bff2c2e49218b0d9c0d.zip |
-Wwrite-strings safe
Diffstat (limited to 'redo.c')
-rw-r--r-- | redo.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/redo.c b/redo.c index 42483d4..f4e256f 100644 --- a/redo.c +++ b/redo.c @@ -1,5 +1,5 @@ /* -##% cc -g -Os -Wall -Wextra -o $STEM $FILE +##% cc -g -Os -Wall -Wextra -Wwrite-strings -o $STEM $FILE */ /* @@ -184,7 +184,7 @@ redo_ifcreate(char *target) } static char * -check_dofile(char *fmt, ...) +check_dofile(const char *fmt, ...) { char dofile[1024]; @@ -258,7 +258,7 @@ find_dofile(char *target) } static int -envfd(char *name) +envfd(const char *name) { long fd; @@ -274,7 +274,7 @@ envfd(char *name) } static void -setenvfd(char *name, int i) +setenvfd(const char *name, int i) { char buf[16]; snprintf(buf, sizeof buf, "%d", i); @@ -742,7 +742,7 @@ main(int argc, char *argv[]) if (argc == 0) { argc = 1; - char *all = "all"; + char *all = (char *) "all"; argv[0] = all; // XXX safe? } |