diff options
Diffstat (limited to 'src/rc')
-rw-r--r-- | src/rc/do_e.c | 4 | ||||
-rw-r--r-- | src/rc/rc.c | 2 | ||||
-rw-r--r-- | src/rc/start-stop-daemon.c | 2 |
3 files changed, 4 insertions, 4 deletions
diff --git a/src/rc/do_e.c b/src/rc/do_e.c index 426087e9..8e15806f 100644 --- a/src/rc/do_e.c +++ b/src/rc/do_e.c @@ -35,9 +35,9 @@ const char *applet = NULL; -static int syslog_decode(char *name, CODE *codetab) +static int syslog_decode(char *name, const CODE *codetab) { - CODE *c; + const CODE *c; if (isdigit((unsigned char)*name)) return atoi(name); diff --git a/src/rc/rc.c b/src/rc/rc.c index c6e453b3..ef46925d 100644 --- a/src/rc/rc.c +++ b/src/rc/rc.c @@ -20,7 +20,7 @@ * except according to the terms contained in the LICENSE file. */ -const char rc_copyright[] = "Copyright (c) 2007-2008 Roy Marples"; +static const char rc_copyright[] = "Copyright (c) 2007-2008 Roy Marples"; #include <sys/types.h> #include <sys/ioctl.h> diff --git a/src/rc/start-stop-daemon.c b/src/rc/start-stop-daemon.c index baa73216..77794a6c 100644 --- a/src/rc/start-stop-daemon.c +++ b/src/rc/start-stop-daemon.c @@ -669,7 +669,7 @@ int main(int argc, char **argv) nav[len++] = p; for (i = 0; i < opt; i++) nav[i + len] = argv[i]; - nav[i + len] = '\0'; + nav[i + len] = NULL; } } } |