aboutsummaryrefslogtreecommitdiff
path: root/coreutils/touch.c
diff options
context:
space:
mode:
authorkraai <kraai@69ca8d6d-28ef-0310-b511-8ec308f3f277>2000-12-01 02:55:13 +0000
committerkraai <kraai@69ca8d6d-28ef-0310-b511-8ec308f3f277>2000-12-01 02:55:13 +0000
commit8cb2f75a75eb9694f36312ab4856d335ab2bac19 (patch)
tree013a1e7752113314831ad7d51854ce8dc9e0918b /coreutils/touch.c
parent8bfd1e939579e988ad4d2c0cc1425448f1fd7236 (diff)
downloadbusybox-w32-8cb2f75a75eb9694f36312ab4856d335ab2bac19.tar.gz
busybox-w32-8cb2f75a75eb9694f36312ab4856d335ab2bac19.tar.bz2
busybox-w32-8cb2f75a75eb9694f36312ab4856d335ab2bac19.zip
Stop using TRUE and FALSE for exit status.
git-svn-id: svn://busybox.net/trunk/busybox@1360 69ca8d6d-28ef-0310-b511-8ec308f3f277
Diffstat (limited to 'coreutils/touch.c')
-rw-r--r--coreutils/touch.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/coreutils/touch.c b/coreutils/touch.c
index 7db6c6e33..5537fb63b 100644
--- a/coreutils/touch.c
+++ b/coreutils/touch.c
@@ -43,7 +43,6 @@ extern int touch_main(int argc, char **argv)
43 break; 43 break;
44 default: 44 default:
45 usage(touch_usage); 45 usage(touch_usage);
46 exit(FALSE);
47 } 46 }
48 } 47 }
49 } 48 }
@@ -57,7 +56,7 @@ extern int touch_main(int argc, char **argv)
57 S_IRUSR | S_IWUSR | S_IRGRP | S_IWGRP | S_IROTH | S_IWOTH); 56 S_IRUSR | S_IWUSR | S_IRGRP | S_IWGRP | S_IROTH | S_IWOTH);
58 if (fd < 0) { 57 if (fd < 0) {
59 if (create == FALSE && errno == ENOENT) 58 if (create == FALSE && errno == ENOENT)
60 exit(TRUE); 59 return EXIT_SUCCESS;
61 else { 60 else {
62 fatalError("%s", strerror(errno)); 61 fatalError("%s", strerror(errno));
63 } 62 }
@@ -70,5 +69,5 @@ extern int touch_main(int argc, char **argv)
70 argv++; 69 argv++;
71 } 70 }
72 71
73 return(TRUE); 72 return EXIT_SUCCESS;
74} 73}