summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorRoy Marples <roy@marples.name>2007-10-09 12:52:09 +0000
committerRoy Marples <roy@marples.name>2007-10-09 12:52:09 +0000
commite89805e0c06792c58c19e47f99ab6379d69a2149 (patch)
treeeba526ca3afdfdeb7f4baeba464956206aaa62d0 /src
parent3ac49bd6b3ad681a98fb1c19c379c5ac68c8cc3f (diff)
downloadopenrc-e89805e0c06792c58c19e47f99ab6379d69a2149.tar.gz
openrc-e89805e0c06792c58c19e47f99ab6379d69a2149.tar.bz2
openrc-e89805e0c06792c58c19e47f99ab6379d69a2149.tar.xz
Quiet some compile time warnings on uclibc
Diffstat (limited to 'src')
-rw-r--r--src/libeinfo.c1
-rw-r--r--src/librc.h1
-rw-r--r--src/rc-misc.c4
-rw-r--r--src/rc-update.c2
-rw-r--r--src/rc.c1
-rw-r--r--src/runscript.c2
6 files changed, 8 insertions, 3 deletions
diff --git a/src/libeinfo.c b/src/libeinfo.c
index 2b40803..57ec9e6 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 0012d90..410d727 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 1215c0c..a23effd 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 5e5786b..2c0b35c 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 2abd3a8..9b8b1ea 100644
--- a/src/rc.c
+++ b/src/rc.c
@@ -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 2c49742..1a350e6 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];