aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--init.c2
-rw-r--r--init/init.c2
-rw-r--r--miscutils/update.c6
-rw-r--r--sysklogd/syslogd.c6
-rw-r--r--syslogd.c6
-rw-r--r--update.c6
6 files changed, 14 insertions, 14 deletions
diff --git a/init.c b/init.c
index 0e126104b..98a58f275 100644
--- a/init.c
+++ b/init.c
@@ -93,7 +93,7 @@
93#if defined(__GLIBC__) 93#if defined(__GLIBC__)
94#include <sys/kdaemon.h> 94#include <sys/kdaemon.h>
95#else 95#else
96_syscall2(int, bdflush, int, func, int, data); 96static _syscall2(int, bdflush, int, func, int, data);
97#endif /* __GLIBC__ */ 97#endif /* __GLIBC__ */
98 98
99 99
diff --git a/init/init.c b/init/init.c
index 0e126104b..98a58f275 100644
--- a/init/init.c
+++ b/init/init.c
@@ -93,7 +93,7 @@
93#if defined(__GLIBC__) 93#if defined(__GLIBC__)
94#include <sys/kdaemon.h> 94#include <sys/kdaemon.h>
95#else 95#else
96_syscall2(int, bdflush, int, func, int, data); 96static _syscall2(int, bdflush, int, func, int, data);
97#endif /* __GLIBC__ */ 97#endif /* __GLIBC__ */
98 98
99 99
diff --git a/miscutils/update.c b/miscutils/update.c
index 14f1d3c20..b86d84e06 100644
--- a/miscutils/update.c
+++ b/miscutils/update.c
@@ -28,12 +28,14 @@
28#include <sys/param.h> 28#include <sys/param.h>
29#include <sys/syslog.h> 29#include <sys/syslog.h>
30 30
31
31#if defined(__GLIBC__) 32#if defined(__GLIBC__)
32#include <sys/kdaemon.h> 33#include <sys/kdaemon.h>
33#else 34#else
34_syscall2(int, bdflush, int, func, int, data); 35static _syscall2(int, bdflush, int, func, int, data);
35#endif /* __GLIBC__ */ 36#endif /* __GLIBC__ */
36 37
38
37static char update_usage[] = 39static char update_usage[] =
38 "update [options]\n" 40 "update [options]\n"
39#ifndef BB_FEATURE_TRIVIAL_HELP 41#ifndef BB_FEATURE_TRIVIAL_HELP
@@ -109,7 +111,7 @@ extern int update_main(int argc, char **argv)
109 } 111 }
110 } 112 }
111 } 113 }
112 exit( TRUE); 114 return( TRUE);
113} 115}
114 116
115/* 117/*
diff --git a/sysklogd/syslogd.c b/sysklogd/syslogd.c
index d2fbc3d87..f4e7f459b 100644
--- a/sysklogd/syslogd.c
+++ b/sysklogd/syslogd.c
@@ -42,12 +42,10 @@
42#include <sys/param.h> 42#include <sys/param.h>
43#include <linux/unistd.h> 43#include <linux/unistd.h>
44 44
45#ifndef socklen_t
46typedef unsigned int socklen_t;
47#endif
48
49#if __GNU_LIBRARY__ < 5 45#if __GNU_LIBRARY__ < 5
50 46
47typedef unsigned int socklen_t;
48
51#ifndef __alpha__ 49#ifndef __alpha__
52# define __NR_klogctl __NR_syslog 50# define __NR_klogctl __NR_syslog
53static inline _syscall3(int, klogctl, int, type, char *, b, int, len); 51static inline _syscall3(int, klogctl, int, type, char *, b, int, len);
diff --git a/syslogd.c b/syslogd.c
index d2fbc3d87..f4e7f459b 100644
--- a/syslogd.c
+++ b/syslogd.c
@@ -42,12 +42,10 @@
42#include <sys/param.h> 42#include <sys/param.h>
43#include <linux/unistd.h> 43#include <linux/unistd.h>
44 44
45#ifndef socklen_t
46typedef unsigned int socklen_t;
47#endif
48
49#if __GNU_LIBRARY__ < 5 45#if __GNU_LIBRARY__ < 5
50 46
47typedef unsigned int socklen_t;
48
51#ifndef __alpha__ 49#ifndef __alpha__
52# define __NR_klogctl __NR_syslog 50# define __NR_klogctl __NR_syslog
53static inline _syscall3(int, klogctl, int, type, char *, b, int, len); 51static inline _syscall3(int, klogctl, int, type, char *, b, int, len);
diff --git a/update.c b/update.c
index 14f1d3c20..b86d84e06 100644
--- a/update.c
+++ b/update.c
@@ -28,12 +28,14 @@
28#include <sys/param.h> 28#include <sys/param.h>
29#include <sys/syslog.h> 29#include <sys/syslog.h>
30 30
31
31#if defined(__GLIBC__) 32#if defined(__GLIBC__)
32#include <sys/kdaemon.h> 33#include <sys/kdaemon.h>
33#else 34#else
34_syscall2(int, bdflush, int, func, int, data); 35static _syscall2(int, bdflush, int, func, int, data);
35#endif /* __GLIBC__ */ 36#endif /* __GLIBC__ */
36 37
38
37static char update_usage[] = 39static char update_usage[] =
38 "update [options]\n" 40 "update [options]\n"
39#ifndef BB_FEATURE_TRIVIAL_HELP 41#ifndef BB_FEATURE_TRIVIAL_HELP
@@ -109,7 +111,7 @@ extern int update_main(int argc, char **argv)
109 } 111 }
110 } 112 }
111 } 113 }
112 exit( TRUE); 114 return( TRUE);
113} 115}
114 116
115/* 117/*