diff options
Diffstat (limited to 'test-chmtime.c')
-rw-r--r-- | test-chmtime.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/test-chmtime.c b/test-chmtime.c index 92713d16da..2e601a8038 100644 --- a/test-chmtime.c +++ b/test-chmtime.c @@ -84,7 +84,7 @@ int main(int argc, const char *argv[]) if (stat(argv[i], &sb) < 0) { fprintf(stderr, "Failed to stat %s: %s\n", argv[i], strerror(errno)); - return -1; + return 1; } #ifdef WIN32 @@ -92,7 +92,7 @@ int main(int argc, const char *argv[]) chmod(argv[i], sb.st_mode | S_IWUSR)) { fprintf(stderr, "Could not make user-writable %s: %s", argv[i], strerror(errno)); - return -1; + return 1; } #endif @@ -107,13 +107,13 @@ int main(int argc, const char *argv[]) if (utb.modtime != sb.st_mtime && utime(argv[i], &utb) < 0) { fprintf(stderr, "Failed to modify time on %s: %s\n", argv[i], strerror(errno)); - return -1; + return 1; } } return 0; usage: - fprintf(stderr, "Usage: %s %s\n", argv[0], usage_str); - return -1; + fprintf(stderr, "usage: %s %s\n", argv[0], usage_str); + return 1; } |