diff options
Diffstat (limited to 'lib-src/profile.c')
-rw-r--r-- | lib-src/profile.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/lib-src/profile.c b/lib-src/profile.c index 0e603776049..cfee5b8608f 100644 --- a/lib-src/profile.c +++ b/lib-src/profile.c @@ -35,6 +35,7 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ #include <inttypes.h> #include <stdio.h> +#include <stdlib.h> #include <intprops.h> #include <systime.h> @@ -84,13 +85,13 @@ main (void) puts (get_time ()); break; case 'q': - exit (EXIT_SUCCESS); + return EXIT_SUCCESS; } /* Anything remaining on the line is ignored. */ while (c != '\n' && c != EOF) c = getchar (); } - exit (EXIT_FAILURE); + return EXIT_FAILURE; } |