[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
mkfifo int cleanup
From: |
Paul Eggert |
Subject: |
mkfifo int cleanup |
Date: |
Fri, 30 Jul 2004 01:13:44 -0700 |
User-agent: |
Gnus/5.1006 (Gnus v5.10.6) Emacs/21.3 (gnu/linux) |
I installed this very minor patch to coreutils mkfifo..
2004-07-29 Paul Eggert <address@hidden>
* src/mkfifo.c (main): Use EXIT_SUCCESS and EXIT_FAILURE, not 0 and 1.
Index: mkfifo.c
===================================================================
RCS file: /home/eggert/coreutils/cu/src/mkfifo.c,v
retrieving revision 1.71
retrieving revision 1.72
diff -p -u -r1.71 -r1.72
--- mkfifo.c 21 Jun 2004 15:03:35 -0000 1.71
+++ mkfifo.c 30 Jul 2004 08:00:40 -0000 1.72
@@ -77,7 +77,7 @@ main (int argc, char **argv)
mode_t newmode;
struct mode_change *change;
const char *specified_mode;
- int errors = 0;
+ int exit_status = EXIT_SUCCESS;
int optc;
initialize_main (&argc, &argv);
@@ -145,9 +145,9 @@ main (int argc, char **argv)
}
if (fail)
- errors = 1;
+ exit_status = EXIT_FAILURE;
}
- exit (errors);
+ exit (exit_status);
#endif
}
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- mkfifo int cleanup,
Paul Eggert <=