From 9b2297a34e35be143155769a470331af2f2b9330 Mon Sep 17 00:00:00 2001 From: Eric Andersen Date: Mon, 10 Jul 2000 20:08:44 +0000 Subject: Remove yet more kernel header dependancies. -Erik --- coreutils/ln.c | 2 +- dmesg.c | 2 +- init.c | 2 +- init/init.c | 2 +- insmod.c | 5 ++--- ln.c | 2 +- miscutils/update.c | 2 +- modutils/insmod.c | 5 ++--- swaponoff.c | 2 +- sysklogd/syslogd.c | 2 +- syslogd.c | 2 +- update.c | 2 +- util-linux/dmesg.c | 2 +- util-linux/swaponoff.c | 2 +- utility.c | 2 -- 15 files changed, 16 insertions(+), 20 deletions(-) diff --git a/coreutils/ln.c b/coreutils/ln.c index beaa58f..3c45dee 100644 --- a/coreutils/ln.c +++ b/coreutils/ln.c @@ -52,7 +52,7 @@ static int followLinks = TRUE; extern int ln_main(int argc, char **argv) { - char *linkName, *dirName; + char *linkName, *dirName=NULL; int linkIntoDirFlag; int stopIt = FALSE; diff --git a/dmesg.c b/dmesg.c index e88f549..b6c990d 100644 --- a/dmesg.c +++ b/dmesg.c @@ -23,7 +23,7 @@ #ifndef __alpha__ # define __NR_klogctl __NR_syslog -#include +#include static inline _syscall3(int, klogctl, int, type, char *, b, int, len); #else /* __alpha__ */ #define klogctl syslog diff --git a/init.c b/init.c index 52440ef..e0b4651 100644 --- a/init.c +++ b/init.c @@ -110,7 +110,7 @@ struct serial_struct { #if defined(__GLIBC__) #include #else -#include /* for _syscall() macro */ +#include /* for _syscall() macro */ static _syscall2(int, bdflush, int, func, int, data); #endif /* __GLIBC__ */ diff --git a/init/init.c b/init/init.c index 52440ef..e0b4651 100644 --- a/init/init.c +++ b/init/init.c @@ -110,7 +110,7 @@ struct serial_struct { #if defined(__GLIBC__) #include #else -#include /* for _syscall() macro */ +#include /* for _syscall() macro */ static _syscall2(int, bdflush, int, func, int, data); #endif /* __GLIBC__ */ diff --git a/insmod.c b/insmod.c index 79732b0..469d056 100644 --- a/insmod.c +++ b/insmod.c @@ -41,7 +41,6 @@ #include #include #include -#include //---------------------------------------------------------------------------- //--------modutils module.h, lines 45-242 @@ -72,7 +71,7 @@ #ifndef MODUTILS_MODULE_H #define MODUTILS_MODULE_H 1 -#ident "$Id: insmod.c,v 1.13 2000/07/09 06:59:58 andersen Exp $" +#ident "$Id: insmod.c,v 1.14 2000/07/10 20:08:44 andersen Exp $" /* This file contains the structures used by the 2.0 and 2.1 kernels. We do not use the kernel headers directly because we do not wish @@ -278,7 +277,7 @@ int delete_module(const char *); #ifndef MODUTILS_OBJ_H #define MODUTILS_OBJ_H 1 -#ident "$Id: insmod.c,v 1.13 2000/07/09 06:59:58 andersen Exp $" +#ident "$Id: insmod.c,v 1.14 2000/07/10 20:08:44 andersen Exp $" /* The relocatable object is manipulated using elfin types. */ diff --git a/ln.c b/ln.c index beaa58f..3c45dee 100644 --- a/ln.c +++ b/ln.c @@ -52,7 +52,7 @@ static int followLinks = TRUE; extern int ln_main(int argc, char **argv) { - char *linkName, *dirName; + char *linkName, *dirName=NULL; int linkIntoDirFlag; int stopIt = FALSE; diff --git a/miscutils/update.c b/miscutils/update.c index b86d84e..1fdf04a 100644 --- a/miscutils/update.c +++ b/miscutils/update.c @@ -24,7 +24,7 @@ */ #include "internal.h" -#include +#include #include #include diff --git a/modutils/insmod.c b/modutils/insmod.c index 79732b0..469d056 100644 --- a/modutils/insmod.c +++ b/modutils/insmod.c @@ -41,7 +41,6 @@ #include #include #include -#include //---------------------------------------------------------------------------- //--------modutils module.h, lines 45-242 @@ -72,7 +71,7 @@ #ifndef MODUTILS_MODULE_H #define MODUTILS_MODULE_H 1 -#ident "$Id: insmod.c,v 1.13 2000/07/09 06:59:58 andersen Exp $" +#ident "$Id: insmod.c,v 1.14 2000/07/10 20:08:44 andersen Exp $" /* This file contains the structures used by the 2.0 and 2.1 kernels. We do not use the kernel headers directly because we do not wish @@ -278,7 +277,7 @@ int delete_module(const char *); #ifndef MODUTILS_OBJ_H #define MODUTILS_OBJ_H 1 -#ident "$Id: insmod.c,v 1.13 2000/07/09 06:59:58 andersen Exp $" +#ident "$Id: insmod.c,v 1.14 2000/07/10 20:08:44 andersen Exp $" /* The relocatable object is manipulated using elfin types. */ diff --git a/swaponoff.c b/swaponoff.c index 223436c..bb8395f 100644 --- a/swaponoff.c +++ b/swaponoff.c @@ -28,7 +28,7 @@ #include #include #include -#include +#include _syscall2(int, swapon, const char *, path, int, flags); _syscall1(int, swapoff, const char *, path); diff --git a/sysklogd/syslogd.c b/sysklogd/syslogd.c index aa1218f..a185a4c 100644 --- a/sysklogd/syslogd.c +++ b/sysklogd/syslogd.c @@ -40,7 +40,7 @@ #include #include #include -#include +#include #if ! defined __GLIBC__ && ! defined __UCLIBC__ diff --git a/syslogd.c b/syslogd.c index aa1218f..a185a4c 100644 --- a/syslogd.c +++ b/syslogd.c @@ -40,7 +40,7 @@ #include #include #include -#include +#include #if ! defined __GLIBC__ && ! defined __UCLIBC__ diff --git a/update.c b/update.c index b86d84e..1fdf04a 100644 --- a/update.c +++ b/update.c @@ -24,7 +24,7 @@ */ #include "internal.h" -#include +#include #include #include diff --git a/util-linux/dmesg.c b/util-linux/dmesg.c index e88f549..b6c990d 100644 --- a/util-linux/dmesg.c +++ b/util-linux/dmesg.c @@ -23,7 +23,7 @@ #ifndef __alpha__ # define __NR_klogctl __NR_syslog -#include +#include static inline _syscall3(int, klogctl, int, type, char *, b, int, len); #else /* __alpha__ */ #define klogctl syslog diff --git a/util-linux/swaponoff.c b/util-linux/swaponoff.c index 223436c..bb8395f 100644 --- a/util-linux/swaponoff.c +++ b/util-linux/swaponoff.c @@ -28,7 +28,7 @@ #include #include #include -#include +#include _syscall2(int, swapon, const char *, path, int, flags); _syscall1(int, swapoff, const char *, path); diff --git a/utility.c b/utility.c index 97e0366..b4e0434 100644 --- a/utility.c +++ b/utility.c @@ -134,13 +134,11 @@ extern int get_kernel_revision(void) #if defined BB_FREE || defined BB_INIT || defined BB_UNAME || defined BB_UPTIME #include -#include _syscall1(int, sysinfo, struct sysinfo *, info); #endif /* BB_INIT */ #if defined BB_MOUNT || defined BB_UMOUNT #include -#include #ifndef __NR_umount2 #define __NR_umount2 52 -- cgit v1.1