aboutsummaryrefslogtreecommitdiff
path: root/coreutils
diff options
context:
space:
mode:
Diffstat (limited to 'coreutils')
-rw-r--r--coreutils/basename.c2
-rw-r--r--coreutils/chroot.c2
-rw-r--r--coreutils/cmp.c2
-rw-r--r--coreutils/cut.c2
-rw-r--r--coreutils/date.c4
-rw-r--r--coreutils/dd.c2
-rw-r--r--coreutils/df.c10
-rw-r--r--coreutils/dirname.c2
-rw-r--r--coreutils/dos2unix.c2
-rw-r--r--coreutils/du.c4
-rw-r--r--coreutils/echo.c2
-rw-r--r--coreutils/hostid.c2
-rw-r--r--coreutils/length.c2
-rw-r--r--coreutils/ls.c1
-rw-r--r--coreutils/md5sum.c19
-rw-r--r--coreutils/mkdir.c10
-rw-r--r--coreutils/mkfifo.c4
-rw-r--r--coreutils/mknod.c2
-rw-r--r--coreutils/pwd.c2
-rw-r--r--coreutils/rm.c4
-rw-r--r--coreutils/sleep.c4
-rw-r--r--coreutils/touch.c5
-rw-r--r--coreutils/tty.c2
-rw-r--r--coreutils/uname.c2
-rw-r--r--coreutils/usleep.c2
-rw-r--r--coreutils/uudecode.c6
-rw-r--r--coreutils/uuencode.c6
27 files changed, 54 insertions, 53 deletions
diff --git a/coreutils/basename.c b/coreutils/basename.c
index 4d9fc4ec0..fcc7d4619 100644
--- a/coreutils/basename.c
+++ b/coreutils/basename.c
@@ -45,5 +45,5 @@ extern int basename_main(int argc, char **argv)
45 s[m-n] = '\0'; 45 s[m-n] = '\0';
46 } 46 }
47 printf("%s\n", s); 47 printf("%s\n", s);
48 return(TRUE); 48 return EXIT_SUCCESS;
49} 49}
diff --git a/coreutils/chroot.c b/coreutils/chroot.c
index f0a298104..f279af18d 100644
--- a/coreutils/chroot.c
+++ b/coreutils/chroot.c
@@ -54,7 +54,7 @@ int chroot_main(int argc, char **argv)
54 execlp(prog, prog, NULL); 54 execlp(prog, prog, NULL);
55#else 55#else
56 shell_main(argc, argv); 56 shell_main(argc, argv);
57 exit (0); 57 return EXIT_SUCCESS;
58#endif 58#endif
59 } 59 }
60 fatalError("cannot execute %s: %s\n", prog, strerror(errno)); 60 fatalError("cannot execute %s: %s\n", prog, strerror(errno));
diff --git a/coreutils/cmp.c b/coreutils/cmp.c
index 98b747eed..6b955447c 100644
--- a/coreutils/cmp.c
+++ b/coreutils/cmp.c
@@ -54,7 +54,7 @@ int cmp_main(int argc, char **argv)
54 else 54 else
55 printf("%s %s differ: char %d, line %d\n", filename1, filename2, 55 printf("%s %s differ: char %d, line %d\n", filename1, filename2,
56 char_pos, line_pos); 56 char_pos, line_pos);
57 return 1; 57 return EXIT_FAILURE;
58 } 58 }
59 char_pos++; 59 char_pos++;
60 if (c1 == '\n') 60 if (c1 == '\n')
diff --git a/coreutils/cut.c b/coreutils/cut.c
index 2d313cc24..b281fa234 100644
--- a/coreutils/cut.c
+++ b/coreutils/cut.c
@@ -241,5 +241,5 @@ extern int cut_main(int argc, char **argv)
241 } 241 }
242 } 242 }
243 243
244 return 0; 244 return EXIT_SUCCESS;
245} 245}
diff --git a/coreutils/date.c b/coreutils/date.c
index 7e4216768..2e69bde4a 100644
--- a/coreutils/date.c
+++ b/coreutils/date.c
@@ -232,7 +232,7 @@ int date_main(int argc, char **argv)
232 } else if (*date_fmt == '\0') { 232 } else if (*date_fmt == '\0') {
233 /* Imitate what GNU 'date' does with NO format string! */ 233 /* Imitate what GNU 'date' does with NO format string! */
234 printf("\n"); 234 printf("\n");
235 exit(TRUE); 235 return EXIT_SUCCESS;
236 } 236 }
237 237
238 /* Handle special conversions */ 238 /* Handle special conversions */
@@ -246,5 +246,5 @@ int date_main(int argc, char **argv)
246 strftime(t_buff, 200, date_fmt, &tm_time); 246 strftime(t_buff, 200, date_fmt, &tm_time);
247 printf("%s\n", t_buff); 247 printf("%s\n", t_buff);
248 248
249 return(TRUE); 249 return EXIT_SUCCESS;
250} 250}
diff --git a/coreutils/dd.c b/coreutils/dd.c
index 2b77ea6a5..044f167c3 100644
--- a/coreutils/dd.c
+++ b/coreutils/dd.c
@@ -174,7 +174,7 @@ extern int dd_main(int argc, char **argv)
174 (inTotal % blockSize) != 0); 174 (inTotal % blockSize) != 0);
175 printf("%ld+%d records out\n", (long) (outTotal / blockSize), 175 printf("%ld+%d records out\n", (long) (outTotal / blockSize),
176 (outTotal % blockSize) != 0); 176 (outTotal % blockSize) != 0);
177 exit(TRUE); 177 return EXIT_SUCCESS;
178 usage: 178 usage:
179 179
180 usage(dd_usage); 180 usage(dd_usage);
diff --git a/coreutils/df.c b/coreutils/df.c
index 8d6242c56..aefffc771 100644
--- a/coreutils/df.c
+++ b/coreutils/df.c
@@ -79,12 +79,12 @@ extern int df_main(int argc, char **argv)
79 exit(FALSE); 79 exit(FALSE);
80 } 80 }
81 status = df(mountEntry->mnt_fsname, mountEntry->mnt_dir); 81 status = df(mountEntry->mnt_fsname, mountEntry->mnt_dir);
82 if (status != 0) 82 if (status != TRUE)
83 exit(status); 83 return EXIT_FAILURE;
84 argc--; 84 argc--;
85 argv++; 85 argv++;
86 } 86 }
87 exit(TRUE); 87 return EXIT_SUCCESS;
88 } else { 88 } else {
89 FILE *mountTable; 89 FILE *mountTable;
90 struct mntent *mountEntry; 90 struct mntent *mountEntry;
@@ -92,7 +92,7 @@ extern int df_main(int argc, char **argv)
92 mountTable = setmntent(mtab_file, "r"); 92 mountTable = setmntent(mtab_file, "r");
93 if (mountTable == 0) { 93 if (mountTable == 0) {
94 perror(mtab_file); 94 perror(mtab_file);
95 exit(FALSE); 95 return EXIT_FAILURE;
96 } 96 }
97 97
98 while ((mountEntry = getmntent(mountTable))) { 98 while ((mountEntry = getmntent(mountTable))) {
@@ -101,7 +101,7 @@ extern int df_main(int argc, char **argv)
101 endmntent(mountTable); 101 endmntent(mountTable);
102 } 102 }
103 103
104 return(TRUE); 104 return EXIT_FAILURE;
105} 105}
106 106
107/* 107/*
diff --git a/coreutils/dirname.c b/coreutils/dirname.c
index 23f46be40..ceb750cb8 100644
--- a/coreutils/dirname.c
+++ b/coreutils/dirname.c
@@ -40,5 +40,5 @@ extern int dirname_main(int argc, char **argv)
40 if (s && *s) 40 if (s && *s)
41 *s = '\0'; 41 *s = '\0';
42 printf("%s\n", (s)? *argv : "."); 42 printf("%s\n", (s)? *argv : ".");
43 return(TRUE); 43 return EXIT_SUCCESS;
44} 44}
diff --git a/coreutils/dos2unix.c b/coreutils/dos2unix.c
index c9f783f1a..ed2088e4e 100644
--- a/coreutils/dos2unix.c
+++ b/coreutils/dos2unix.c
@@ -41,5 +41,5 @@ int dos2unix_main( int argc, char **argv ) {
41 putchar(c); 41 putchar(c);
42 c = getchar(); 42 c = getchar();
43 } 43 }
44 return 0; 44 return EXIT_SUCCESS;
45} 45}
diff --git a/coreutils/du.c b/coreutils/du.c
index 408ad994c..a0f1606fe 100644
--- a/coreutils/du.c
+++ b/coreutils/du.c
@@ -160,10 +160,10 @@ int du_main(int argc, char **argv)
160 } 160 }
161 } 161 }
162 162
163 return(0); 163 return EXIT_SUCCESS;
164} 164}
165 165
166/* $Id: du.c,v 1.25 2000/09/25 21:45:57 andersen Exp $ */ 166/* $Id: du.c,v 1.26 2000/12/01 02:55:13 kraai Exp $ */
167/* 167/*
168Local Variables: 168Local Variables:
169c-file-style: "linux" 169c-file-style: "linux"
diff --git a/coreutils/echo.c b/coreutils/echo.c
index a6b5152d8..393f4425f 100644
--- a/coreutils/echo.c
+++ b/coreutils/echo.c
@@ -107,7 +107,7 @@ just_echo:
107 putchar('\n'); 107 putchar('\n');
108 fflush(stdout); 108 fflush(stdout);
109 109
110 return 0; 110 return EXIT_SUCCESS;
111} 111}
112 112
113/*- 113/*-
diff --git a/coreutils/hostid.c b/coreutils/hostid.c
index 47bd8d724..35a5859c4 100644
--- a/coreutils/hostid.c
+++ b/coreutils/hostid.c
@@ -26,5 +26,5 @@
26extern int hostid_main(int argc, char **argv) 26extern int hostid_main(int argc, char **argv)
27{ 27{
28 printf("%lx\n", gethostid()); 28 printf("%lx\n", gethostid());
29 return(TRUE); 29 return EXIT_SUCCESS;
30} 30}
diff --git a/coreutils/length.c b/coreutils/length.c
index 14d15c81c..1ab4e3a58 100644
--- a/coreutils/length.c
+++ b/coreutils/length.c
@@ -9,5 +9,5 @@ extern int length_main(int argc, char **argv)
9 if (argc != 2 || **(argv + 1) == '-') 9 if (argc != 2 || **(argv + 1) == '-')
10 usage(length_usage); 10 usage(length_usage);
11 printf("%lu\n", (long)strlen(argv[1])); 11 printf("%lu\n", (long)strlen(argv[1]));
12 return (TRUE); 12 return EXIT_SUCCESS;
13} 13}
diff --git a/coreutils/ls.c b/coreutils/ls.c
index d508a1bfe..225132ba4 100644
--- a/coreutils/ls.c
+++ b/coreutils/ls.c
@@ -878,5 +878,4 @@ extern int ls_main(int argc, char **argv)
878 878
879 print_usage_message: 879 print_usage_message:
880 usage(ls_usage); 880 usage(ls_usage);
881 return(FALSE);
882} 881}
diff --git a/coreutils/md5sum.c b/coreutils/md5sum.c
index 21570de93..30b882ab5 100644
--- a/coreutils/md5sum.c
+++ b/coreutils/md5sum.c
@@ -902,22 +902,22 @@ int md5sum_main(int argc,
902 902
903 if (file_type_specified && do_check) { 903 if (file_type_specified && do_check) {
904 errorMsg("the -b and -t options are meaningless when verifying checksums\n"); 904 errorMsg("the -b and -t options are meaningless when verifying checksums\n");
905 exit FALSE; 905 return EXIT_FAILURE;
906 } 906 }
907 907
908 if (n_strings > 0 && do_check) { 908 if (n_strings > 0 && do_check) {
909 errorMsg("the -g and -c options are mutually exclusive\n"); 909 errorMsg("the -g and -c options are mutually exclusive\n");
910 exit FALSE; 910 return EXIT_FAILURE;
911 } 911 }
912 912
913 if (status_only && !do_check) { 913 if (status_only && !do_check) {
914 errorMsg("the -s option is meaningful only when verifying checksums\n"); 914 errorMsg("the -s option is meaningful only when verifying checksums\n");
915 exit FALSE; 915 return EXIT_FAILURE;
916 } 916 }
917 917
918 if (warn && !do_check) { 918 if (warn && !do_check) {
919 errorMsg("the -w option is meaningful only when verifying checksums\n"); 919 errorMsg("the -w option is meaningful only when verifying checksums\n");
920 exit FALSE; 920 return EXIT_FAILURE;
921 } 921 }
922 922
923 if (n_strings > 0) { 923 if (n_strings > 0) {
@@ -925,7 +925,7 @@ int md5sum_main(int argc,
925 925
926 if (optind < argc) { 926 if (optind < argc) {
927 errorMsg("no files may be specified when using -g\n"); 927 errorMsg("no files may be specified when using -g\n");
928 exit FALSE; 928 return EXIT_FAILURE;
929 } 929 }
930 for (i = 0; i < n_strings; ++i) { 930 for (i = 0; i < n_strings; ++i) {
931 size_t cnt; 931 size_t cnt;
@@ -992,13 +992,16 @@ int md5sum_main(int argc,
992 992
993 if (fclose (stdout) == EOF) { 993 if (fclose (stdout) == EOF) {
994 errorMsg("write error\n"); 994 errorMsg("write error\n");
995 exit FALSE; 995 return EXIT_FAILURE;
996 } 996 }
997 997
998 if (have_read_stdin && fclose (stdin) == EOF) { 998 if (have_read_stdin && fclose (stdin) == EOF) {
999 errorMsg("standard input\n"); 999 errorMsg("standard input\n");
1000 exit FALSE; 1000 return EXIT_FAILURE;
1001 } 1001 }
1002 1002
1003 exit (err == 0 ? TRUE : FALSE); 1003 if (err == 0)
1004 return EXIT_SUCCESS;
1005 else
1006 return EXIT_FAILURE;
1004} 1007}
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}
diff --git a/coreutils/mkfifo.c b/coreutils/mkfifo.c
index 5e1bc1a78..ef4a5256f 100644
--- a/coreutils/mkfifo.c
+++ b/coreutils/mkfifo.c
@@ -55,7 +55,7 @@ extern int mkfifo_main(int argc, char **argv)
55 usage(mkfifo_usage); 55 usage(mkfifo_usage);
56 if (mkfifo(*argv, mode) < 0) { 56 if (mkfifo(*argv, mode) < 0) {
57 perror("mkfifo"); 57 perror("mkfifo");
58 exit(255); 58 return EXIT_FAILURE;
59 } 59 }
60 return(TRUE); 60 return EXIT_SUCCESS;
61} 61}
diff --git a/coreutils/mknod.c b/coreutils/mknod.c
index ecb0e4780..21b2689cc 100644
--- a/coreutils/mknod.c
+++ b/coreutils/mknod.c
@@ -85,6 +85,6 @@ int mknod_main(int argc, char **argv)
85 85
86 if (mknod(argv[0], mode, dev) != 0) 86 if (mknod(argv[0], mode, dev) != 0)
87 fatalError("%s: %s\n", argv[0], strerror(errno)); 87 fatalError("%s: %s\n", argv[0], strerror(errno));
88 return (TRUE); 88 return EXIT_SUCCESS;
89} 89}
90 90
diff --git a/coreutils/pwd.c b/coreutils/pwd.c
index c9de7778e..54129b175 100644
--- a/coreutils/pwd.c
+++ b/coreutils/pwd.c
@@ -34,5 +34,5 @@ extern int pwd_main(int argc, char **argv)
34 fatalError("%s\n", strerror(errno)); 34 fatalError("%s\n", strerror(errno));
35 35
36 printf("%s\n", buf); 36 printf("%s\n", buf);
37 return(TRUE); 37 return EXIT_SUCCESS;
38} 38}
diff --git a/coreutils/rm.c b/coreutils/rm.c
index 4f97cad23..c62083e9b 100644
--- a/coreutils/rm.c
+++ b/coreutils/rm.c
@@ -102,9 +102,9 @@ extern int rm_main(int argc, char **argv)
102 } else { 102 } else {
103 if (recursiveAction(srcName, recursiveFlag, FALSE, 103 if (recursiveAction(srcName, recursiveFlag, FALSE,
104 TRUE, fileAction, dirAction, NULL) == FALSE) { 104 TRUE, fileAction, dirAction, NULL) == FALSE) {
105 exit(FALSE); 105 return EXIT_FAILURE;
106 } 106 }
107 } 107 }
108 } 108 }
109 return(TRUE); 109 return EXIT_SUCCESS;
110} 110}
diff --git a/coreutils/sleep.c b/coreutils/sleep.c
index 709e3de34..ad92b106d 100644
--- a/coreutils/sleep.c
+++ b/coreutils/sleep.c
@@ -32,7 +32,7 @@ extern int sleep_main(int argc, char **argv)
32 32
33 if (sleep(atoi(*(++argv))) != 0) { 33 if (sleep(atoi(*(++argv))) != 0) {
34 perror("sleep"); 34 perror("sleep");
35 exit(FALSE); 35 return EXIT_FAILURE;
36 } 36 }
37 return(TRUE); 37 return EXIT_SUCCESS;
38} 38}
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}
diff --git a/coreutils/tty.c b/coreutils/tty.c
index 6eebed9fb..46201d3e6 100644
--- a/coreutils/tty.c
+++ b/coreutils/tty.c
@@ -38,5 +38,5 @@ extern int tty_main(int argc, char **argv)
38 else 38 else
39 puts("not a tty"); 39 puts("not a tty");
40 } 40 }
41 return(isatty(0) ? TRUE : FALSE); 41 return(isatty(0) ? EXIT_SUCCESS : EXIT_FAILURE);
42} 42}
diff --git a/coreutils/uname.c b/coreutils/uname.c
index 8d9427c86..2781b80b3 100644
--- a/coreutils/uname.c
+++ b/coreutils/uname.c
@@ -138,7 +138,7 @@ int uname_main(int argc, char **argv)
138 print_element(PRINT_MACHINE, name.machine); 138 print_element(PRINT_MACHINE, name.machine);
139 print_element(PRINT_PROCESSOR, processor); 139 print_element(PRINT_PROCESSOR, processor);
140 140
141 return(TRUE); 141 return EXIT_SUCCESS;
142} 142}
143 143
144/* If the name element set in MASK is selected for printing in `toprint', 144/* If the name element set in MASK is selected for printing in `toprint',
diff --git a/coreutils/usleep.c b/coreutils/usleep.c
index 69790ef09..86dc0501b 100644
--- a/coreutils/usleep.c
+++ b/coreutils/usleep.c
@@ -32,5 +32,5 @@ extern int usleep_main(int argc, char **argv)
32 } 32 }
33 33
34 usleep(atoi(*(++argv))); /* return void */ 34 usleep(atoi(*(++argv))); /* return void */
35 return(TRUE); 35 return EXIT_SUCCESS;
36} 36}
diff --git a/coreutils/uudecode.c b/coreutils/uudecode.c
index 78ca0968d..825fdb562 100644
--- a/coreutils/uudecode.c
+++ b/coreutils/uudecode.c
@@ -294,16 +294,16 @@ int uudecode_main (int argc,
294 } 294 }
295 295
296 if (optind == argc) 296 if (optind == argc)
297 exit_status = decode ("stdin", outname) == 0 ? TRUE : FALSE; 297 exit_status = decode ("stdin", outname) == 0 ? EXIT_SUCCESS : EXIT_FAILURE;
298 else { 298 else {
299 exit_status = TRUE; 299 exit_status = EXIT_SUCCESS;
300 do { 300 do {
301 if (freopen (argv[optind], "r", stdin) != NULL) { 301 if (freopen (argv[optind], "r", stdin) != NULL) {
302 if (decode (argv[optind], outname) != 0) 302 if (decode (argv[optind], outname) != 0)
303 exit_status = FALSE; 303 exit_status = FALSE;
304 } else { 304 } else {
305 errorMsg("%s: %s\n", argv[optind], strerror(errno)); 305 errorMsg("%s: %s\n", argv[optind], strerror(errno));
306 exit_status = FALSE; 306 exit_status = EXIT_FAILURE;
307 } 307 }
308 optind++; 308 optind++;
309 } 309 }
diff --git a/coreutils/uuencode.c b/coreutils/uuencode.c
index aea99ed87..8d15adbf6 100644
--- a/coreutils/uuencode.c
+++ b/coreutils/uuencode.c
@@ -179,7 +179,7 @@ int uuencode_main (int argc,
179 /* Optional first argument is input file. */ 179 /* Optional first argument is input file. */
180 if (!freopen (argv[optind], "r", stdin) || fstat (fileno (stdin), &sb)) { 180 if (!freopen (argv[optind], "r", stdin) || fstat (fileno (stdin), &sb)) {
181 errorMsg("%s: %s\n", argv[optind], strerror(errno)); 181 errorMsg("%s: %s\n", argv[optind], strerror(errno));
182 exit FALSE; 182 return EXIT_FAILURE;
183 } 183 }
184 mode = sb.st_mode & (S_IRWXU | S_IRWXG | S_IRWXO); 184 mode = sb.st_mode & (S_IRWXU | S_IRWXG | S_IRWXO);
185 optind++; 185 optind++;
@@ -200,9 +200,9 @@ int uuencode_main (int argc,
200 printf(trans_ptr == uu_std ? "end\n" : "====\n"); 200 printf(trans_ptr == uu_std ? "end\n" : "====\n");
201 if (ferror (stdout)) { 201 if (ferror (stdout)) {
202 errorMsg("Write error\n"); 202 errorMsg("Write error\n");
203 exit FALSE; 203 return EXIT_FAILURE;
204 } 204 }
205 return( TRUE); 205 return EXIT_SUCCESS;
206} 206}
207 207
208/* Copyright (c) 1983 Regents of the University of California. 208/* Copyright (c) 1983 Regents of the University of California.