From e89805e0c06792c58c19e47f99ab6379d69a2149 Mon Sep 17 00:00:00 2001 From: Roy Marples Date: Tue, 9 Oct 2007 12:52:09 +0000 Subject: [PATCH] Quiet some compile time warnings on uclibc --- src/libeinfo.c | 1 + src/librc.h | 1 + src/rc-misc.c | 4 +++- src/rc-update.c | 2 +- src/rc.c | 1 + 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 #include #include +#include #include #include 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 #include #include +#include #include #include 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 + #ifdef __linux__ #include +#include #endif #include #include -#include #include #include #include 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) diff --git a/src/rc.c b/src/rc.c index 2abd3a85..9b8b1ea0 100644 --- a/src/rc.c +++ b/src/rc.c @@ -30,6 +30,7 @@ #include #include #include +#include #include #include #include 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];