Fix some formatting
[oweals/busybox.git] / touch.c
diff --git a/touch.c b/touch.c
index 59800b2a099896ea65d41c4007a8f1c55863b64f..fa2f3b6092c952c26329432a33742292c86559f5 100644 (file)
--- a/touch.c
+++ b/touch.c
@@ -28,6 +28,8 @@
 #include <fcntl.h>
 #include <utime.h>
 #include <errno.h>
+#include <unistd.h>
+#include <stdlib.h>
 
 extern int touch_main(int argc, char **argv)
 {
@@ -58,12 +60,12 @@ extern int touch_main(int argc, char **argv)
                        if (create == FALSE && errno == ENOENT)
                                return EXIT_SUCCESS;
                        else {
-                               error_msg_and_die("%s", strerror(errno));
+                               perror_msg_and_die("%s", *argv);
                        }
                }
                close(fd);
                if (utime(*argv, NULL)) {
-                       error_msg_and_die("%s", strerror(errno));
+                       perror_msg_and_die("%s", *argv);
                }
                argc--;
                argv++;