From e76c3b08e105147e3cef7e8d38d65da2fac6b2e1 Mon Sep 17 00:00:00 2001 From: Eric Andersen Date: Thu, 5 Apr 2001 03:14:39 +0000 Subject: A number of cleanups. Now compiles with libc5, glibc, and uClibc. Fix a few shadowed variables. Move (almost) all syscalls to libbb/syscalls.c, so I can handle them sanely and all at once. -Erik --- util-linux/dmesg.c | 13 ++++--------- 1 file changed, 4 insertions(+), 9 deletions(-) (limited to 'util-linux/dmesg.c') diff --git a/util-linux/dmesg.c b/util-linux/dmesg.c index 2c85ed3e9..73de6d1ae 100644 --- a/util-linux/dmesg.c +++ b/util-linux/dmesg.c @@ -20,18 +20,13 @@ #include #if __GNU_LIBRARY__ < 5 -#include -#include -#ifndef __alpha__ -# define __NR_klogctl __NR_syslog -static inline _syscall3(int, klogctl, int, type, char *, b, int, len); -#else /* __alpha__ */ -#define klogctl syslog -#endif - +# ifdef __alpha__ +# define klogctl syslog +# endif #else # include #endif + #include "busybox.h" int dmesg_main(int argc, char **argv) -- cgit v1.2.3