'simple' error message functions by Loic Grenie <loic.grenie@gmail.com>.
[oweals/busybox.git] / util-linux / setarch.c
index a7a45ec4d5d0d8f6ccd38964d65a02e29183d8d0..08294e55c2631eba35bcc47857672b4ef7193a9a 100644 (file)
@@ -7,14 +7,9 @@
  * Licensed under GPL v2 or later, see file License for details.
 */
 
-#include <stdlib.h>
-#include <unistd.h>
-#include <string.h>
-#include <errno.h>
-#include <stdio.h>
 #include <sys/personality.h>
 
-#include "busybox.h"
+#include "libbb.h"
 
 int setarch_main(int ATTRIBUTE_UNUSED argc, char **argv);
 int setarch_main(int ATTRIBUTE_UNUSED argc, char **argv)
@@ -49,5 +44,5 @@ retry:
                BB_EXECVP(argv[0], argv);
        }
 
-       bb_perror_msg_and_die("%s", argv[0]);
+       bb_simple_perror_msg_and_die(argv[0]);
 }