diff options
-rw-r--r-- | src/libeinfo.c | 1 | ||||
-rw-r--r-- | src/librc.h | 1 | ||||
-rw-r--r-- | src/rc-misc.c | 4 | ||||
-rw-r--r-- | src/rc-update.c | 2 | ||||
-rw-r--r-- | src/rc.c | 1 | ||||
-rw-r--r-- | src/runscript.c | 2 |
6 files changed, 8 insertions, 3 deletions
diff --git a/src/libeinfo.c b/src/libeinfo.c index 2b40803b..57ec9e68 100644 --- a/src/libeinfo.c +++ b/src/libeinfo.c @@ -15,6 +15,7 @@ #include <stdio.h> #include <stdlib.h> #include <string.h> +#include <strings.h> #include <syslog.h> #include <unistd.h> diff --git a/src/librc.h b/src/librc.h index 0012d903..410d7276 100644 --- a/src/librc.h +++ b/src/librc.h @@ -26,6 +26,7 @@ #include <stdio.h> #include <stdlib.h> #include <string.h> +#include <strings.h> #include <time.h> #include <unistd.h> diff --git a/src/rc-misc.c b/src/rc-misc.c index 1215c0c1..a23effd5 100644 --- a/src/rc-misc.c +++ b/src/rc-misc.c @@ -4,13 +4,15 @@ Copyright 2007 Gentoo Foundation */ +#include <sys/types.h> + #ifdef __linux__ #include <sys/sysinfo.h> +#include <regex.h> #endif #include <sys/utsname.h> #include <limits.h> -#include <regex.h> #include <stdio.h> #include <stdlib.h> #include <string.h> diff --git a/src/rc-update.c b/src/rc-update.c index 5e5786b9..2c0b35c8 100644 --- a/src/rc-update.c +++ b/src/rc-update.c @@ -218,7 +218,7 @@ int rc_update (int argc, char **argv) eerror ("%s: service `%s' does not exist", applet, service); else { ssize_t num_updated = 0; - ssize_t (*actfunc)(const char *runlevel, const char *service); + ssize_t (*actfunc)(const char *, const char *); if (action & DOADD) actfunc = add; else if (action & DODELETE) @@ -30,6 +30,7 @@ #include <stdlib.h> #include <signal.h> #include <string.h> +#include <strings.h> #include <syslog.h> #include <termios.h> #include <unistd.h> diff --git a/src/runscript.c b/src/runscript.c index 2c49742a..1a350e67 100644 --- a/src/runscript.c +++ b/src/runscript.c @@ -353,7 +353,7 @@ static bool svc_exec (const char *arg1, const char *arg2) struct termios tt; struct winsize ws; int i; - int flags; + int flags = 0; fd_set rset; int s; char buffer[RC_LINEBUFFER]; |