aboutsummaryrefslogtreecommitdiff
path: root/coreutils/mkdir.c
diff options
context:
space:
mode:
authorMatt Kraai <kraai@debian.org>2000-12-01 02:55:13 +0000
committerMatt Kraai <kraai@debian.org>2000-12-01 02:55:13 +0000
commit3e856ce428cabaf6c8d99a2374a1f9a4a05db5f0 (patch)
tree013a1e7752113314831ad7d51854ce8dc9e0918b /coreutils/mkdir.c
parentb558e76eb1ba173ce3501c3e13fb80f426a7faac (diff)
downloadbusybox-w32-3e856ce428cabaf6c8d99a2374a1f9a4a05db5f0.tar.gz
busybox-w32-3e856ce428cabaf6c8d99a2374a1f9a4a05db5f0.tar.bz2
busybox-w32-3e856ce428cabaf6c8d99a2374a1f9a4a05db5f0.zip
Stop using TRUE and FALSE for exit status.
Diffstat (limited to 'coreutils/mkdir.c')
-rw-r--r--coreutils/mkdir.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/coreutils/mkdir.c b/coreutils/mkdir.c
index 04310e4c7..c950847dc 100644
--- a/coreutils/mkdir.c
+++ b/coreutils/mkdir.c
@@ -51,7 +51,7 @@ extern int mkdir_main(int argc, char **argv)
51 mode = 0; 51 mode = 0;
52 if (parse_mode(*(++argv), &mode) == FALSE) { 52 if (parse_mode(*(++argv), &mode) == FALSE) {
53 errorMsg("Unknown mode: %s\n", *argv); 53 errorMsg("Unknown mode: %s\n", *argv);
54 exit FALSE; 54 return EXIT_FAILURE;
55 } 55 }
56 /* Set the umask for this process so it doesn't 56 /* Set the umask for this process so it doesn't
57 * screw up whatever the user just entered. */ 57 * screw up whatever the user just entered. */
@@ -80,13 +80,13 @@ extern int mkdir_main(int argc, char **argv)
80 80
81 if (strlen(*argv) > BUFSIZ - 1) { 81 if (strlen(*argv) > BUFSIZ - 1) {
82 errorMsg(name_too_long); 82 errorMsg(name_too_long);
83 exit FALSE; 83 return EXIT_FAILURE;
84 } 84 }
85 strcpy(buf, *argv); 85 strcpy(buf, *argv);
86 status = stat(buf, &statBuf); 86 status = stat(buf, &statBuf);
87 if (parentFlag == FALSE && status != -1 && errno != ENOENT) { 87 if (parentFlag == FALSE && status != -1 && errno != ENOENT) {
88 errorMsg("%s: File exists\n", buf); 88 errorMsg("%s: File exists\n", buf);
89 exit FALSE; 89 return EXIT_FAILURE;
90 } 90 }
91 if (parentFlag == TRUE) { 91 if (parentFlag == TRUE) {
92 strcat(buf, "/"); 92 strcat(buf, "/");
@@ -94,11 +94,11 @@ extern int mkdir_main(int argc, char **argv)
94 } else { 94 } else {
95 if (mkdir(buf, mode) != 0 && parentFlag == FALSE) { 95 if (mkdir(buf, mode) != 0 && parentFlag == FALSE) {
96 perror(buf); 96 perror(buf);
97 exit FALSE; 97 return EXIT_FAILURE;
98 } 98 }
99 } 99 }
100 argc--; 100 argc--;
101 argv++; 101 argv++;
102 } 102 }
103 return( TRUE); 103 return EXIT_SUCCESS;
104} 104}