Mercurial > emacs
diff lib-src/profile.c @ 55442:a47704955f8d
Throughout, replace 0 destined for `exit' arg with `EXIT_SUCCESS'.
Likewise, replace 1 with `EXIT_FAILURE'.
(main): Use `EXIT_SUCCESS' or `EXIT_FAILURE' for return value.
author | Thien-Thi Nguyen <ttn@gnuvola.org> |
---|---|
date | Sat, 08 May 2004 15:23:35 +0000 |
parents | 695cf19ef79e |
children | 23a17af379b1 4c90ffeb71c5 |
line wrap: on
line diff
--- a/lib-src/profile.c Sat May 08 15:00:20 2004 +0000 +++ b/lib-src/profile.c Sat May 08 15:23:35 2004 +0000 @@ -55,7 +55,7 @@ get_time () { if (watch_not_started) - exit (1); /* call reset_watch first ! */ + exit (EXIT_FAILURE); /* call reset_watch first ! */ EMACS_GET_TIME (TV2); EMACS_SUB_TIME (TV2, TV2, TV1); sprintf (time_string, "%lu.%06lu", (unsigned long)EMACS_SECS (TV2), (unsigned long)EMACS_USECS (TV2)); @@ -94,14 +94,16 @@ puts (get_time ()); break; case 'q': - exit (0); + exit (EXIT_SUCCESS); } /* Anything remaining on the line is ignored. */ while (c != '\n' && c != EOF) c = getchar (); } - exit (1); + exit (EXIT_FAILURE); } /* arch-tag: 8db68f7e-2322-4944-a315-dba349bdbf39 (do not change this comment) */ + +/* profile.c ends here */