Quiet some compile time warnings on uclibc
This commit is contained in:
parent
3ac49bd6b3
commit
e89805e0c0
@ -15,6 +15,7 @@
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
#include <strings.h>
|
||||
#include <syslog.h>
|
||||
#include <unistd.h>
|
||||
|
||||
|
@ -26,6 +26,7 @@
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
#include <strings.h>
|
||||
#include <time.h>
|
||||
#include <unistd.h>
|
||||
|
||||
|
@ -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>
|
||||
|
@ -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)
|
||||
|
1
src/rc.c
1
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>
|
||||
|
@ -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];
|
||||
|
Loading…
Reference in New Issue
Block a user