From a55d72bbb419215d76465d484bfeee84308af0bc Mon Sep 17 00:00:00 2001 From: Glenn L McGrath Date: Thu, 9 Oct 2003 11:38:45 +0000 Subject: [PATCH] Patch from Steven Scholz, fix some warnings --- coreutils/chgrp.c | 1 - miscutils/hdparm.c | 2 +- util-linux/rdate.c | 3 ++- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/coreutils/chgrp.c b/coreutils/chgrp.c index 8c969d7b6..93e493869 100644 --- a/coreutils/chgrp.c +++ b/coreutils/chgrp.c @@ -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"); diff --git a/miscutils/hdparm.c b/miscutils/hdparm.c index 017d5bf19..52dc11a28 100644 --- a/miscutils/hdparm.c +++ b/miscutils/hdparm.c @@ -48,7 +48,7 @@ #include -#if __BYTE_ORDER == __BIG_ENDIAN +#if (__BYTE_ORDER == __BIG_ENDIAN) && !defined(__USE_XOPEN) #define __USE_XOPEN #endif diff --git a/util-linux/rdate.c b/util-linux/rdate.c index 70dcb24e9..8d156cc78 100644 --- a/util-linux/rdate.c +++ b/util-linux/rdate.c @@ -33,12 +33,13 @@ #include #include #include + #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"); } -- 2.25.1