*: introduce and use bb_unsetenv_and_free
[oweals/busybox.git] / util-linux / rdate.c
index 9e7bdba35abe38ac33d929f3239f37cc33a58734..f257d54384b93cc1ce34ae5e9ec823f8340d8170 100644 (file)
@@ -12,7 +12,7 @@
 
 enum { RFC_868_BIAS = 2208988800UL };
 
-static void socket_timeout(int sig ATTRIBUTE_UNUSED)
+static void socket_timeout(int sig UNUSED_PARAM)
 {
        bb_error_msg_and_die("timeout connecting to time server");
 }
@@ -43,7 +43,7 @@ static time_t askremotedate(const char *host)
 }
 
 int rdate_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE;
-int rdate_main(int argc ATTRIBUTE_UNUSED, char **argv)
+int rdate_main(int argc UNUSED_PARAM, char **argv)
 {
        time_t remote_time;
        unsigned long flags;
@@ -61,7 +61,7 @@ int rdate_main(int argc ATTRIBUTE_UNUSED, char **argv)
                        bb_error_msg("current time matches remote time");
                else
                        if (stime(&remote_time) < 0)
-                               bb_perror_msg_and_die("cannot set time of day");
+                               bb_perror_msg_and_die("can't set time of day");
        }
 
        if ((flags & 1) == 0)