- don't free user-supplied string (via -e)
[oweals/busybox.git] / console-tools / resize.c
index 01b1442f6706f369a335543c8c32af234192e0e3..ea7fe5fcac0aafd21f1909a0fcba2d668e0914bd 100644 (file)
 #define old_termios (*(struct termios*)&bb_common_bufsiz1)
 
 static void
-onintr(int sig ATTRIBUTE_UNUSED)
+onintr(int sig UNUSED_PARAM)
 {
        tcsetattr(STDERR_FILENO, TCSANOW, &old_termios);
-       exit(1);
+       exit(EXIT_FAILURE);
 }
 
 int resize_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE;
-int resize_main(int argc ATTRIBUTE_UNUSED, char **argv ATTRIBUTE_UNUSED)
+int resize_main(int argc UNUSED_PARAM, char **argv UNUSED_PARAM)
 {
        struct termios new;
        struct winsize w = { 0, 0, 0, 0 };