mirror of
git://git.sv.gnu.org/emacs.git
synced 2025-12-15 10:30:25 -08:00
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.
This commit is contained in:
parent
28712a2124
commit
65396510c3
13 changed files with 96 additions and 69 deletions
|
|
@ -55,7 +55,7 @@ char *
|
|||
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 @@ main ()
|
|||
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 */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue