Quiet some compile time warnings on uclibc

This commit is contained in:
Roy Marples 2007-10-09 12:52:09 +00:00
parent 3ac49bd6b3
commit e89805e0c0
6 changed files with 8 additions and 3 deletions

View File

@ -15,6 +15,7 @@
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <strings.h>
#include <syslog.h>
#include <unistd.h>

View File

@ -26,6 +26,7 @@
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <strings.h>
#include <time.h>
#include <unistd.h>

View File

@ -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>

View File

@ -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)

View File

@ -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>

View File

@ -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];