Make cin be static
[oweals/busybox.git] / touch.c
diff --git a/touch.c b/touch.c
index 7db6c6e3383ab2156d6c1569174a44b5cc28d3e3..1b03075e813f35837a61a9efc8c9f0f9253eecd1 100644 (file)
--- a/touch.c
+++ b/touch.c
@@ -43,7 +43,6 @@ extern int touch_main(int argc, char **argv)
                                break;
                        default:
                                usage(touch_usage);
-                               exit(FALSE);
                        }
                }
        }
@@ -57,18 +56,18 @@ extern int touch_main(int argc, char **argv)
                                S_IRUSR | S_IWUSR | S_IRGRP | S_IWGRP | S_IROTH | S_IWOTH);
                if (fd < 0) {
                        if (create == FALSE && errno == ENOENT)
-                               exit(TRUE);
+                               return EXIT_SUCCESS;
                        else {
-                               fatalError("%s", strerror(errno));
+                               perror_msg_and_die("%s", *argv);
                        }
                }
                close(fd);
                if (utime(*argv, NULL)) {
-                       fatalError("%s", strerror(errno));
+                       perror_msg_and_die("%s", *argv);
                }
                argc--;
                argv++;
        }
 
-       return(TRUE);
+       return EXIT_SUCCESS;
 }