Patch from Steven Scholz, fix some warnings
authorbug1 <bug1@69ca8d6d-28ef-0310-b511-8ec308f3f277>
Thu, 9 Oct 2003 11:38:45 +0000 (11:38 +0000)
committerbug1 <bug1@69ca8d6d-28ef-0310-b511-8ec308f3f277>
Thu, 9 Oct 2003 11:38:45 +0000 (11:38 +0000)
git-svn-id: svn://busybox.net/trunk/busybox@7625 69ca8d6d-28ef-0310-b511-8ec308f3f277

coreutils/chgrp.c
miscutils/hdparm.c
util-linux/rdate.c

index 8c969d7..93e4938 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 017d5bf..52dc11a 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 70dcb24..8d156cc 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");
 }