Patch from Steven Scholz, fix some warnings
authorGlenn L McGrath <bug1@ihug.co.nz>
Thu, 9 Oct 2003 11:38:45 +0000 (11:38 -0000)
committerGlenn L McGrath <bug1@ihug.co.nz>
Thu, 9 Oct 2003 11:38:45 +0000 (11:38 -0000)
coreutils/chgrp.c
miscutils/hdparm.c
util-linux/rdate.c

index 8c969d7b6be1e09137330b865244a47756181561..93e493869c81cfdcb3bea58f48871b59440e7cb4 100644 (file)
@@ -48,7 +48,6 @@ int chgrp_main(int argc, char **argv)
        long gid;
        int recursiveFlag;
        int retval = EXIT_SUCCESS;
-       char *p;
 
        recursiveFlag = bb_getopt_ulflags(argc, argv, "R");
 
index 017d5bf197d531c30dfb2eb703c327da1bfae2bd..52dc11a283309a1dce96423232f0249f01d76edc 100644 (file)
@@ -48,7 +48,7 @@
 #include <asm/byteorder.h>
 
 
-#if __BYTE_ORDER == __BIG_ENDIAN
+#if (__BYTE_ORDER == __BIG_ENDIAN) && !defined(__USE_XOPEN)
 #define __USE_XOPEN
 #endif
 
index 70dcb24e94921b93c0954d9ee3b5030523977bd0..8d156cc783835643a10ec5781d96207051cff0d0 100644 (file)
 #include <stdlib.h>
 #include <unistd.h>
 #include <signal.h>
+
 #include "busybox.h"
 
 
 static const int RFC_868_BIAS = 2208988800UL;
 
-static void socket_timeout(void)
+static void socket_timeout(int sig)
 {
        bb_error_msg_and_die("timeout connecting to time server");
 }