diff options
author | Guy Harris <guy@alum.mit.edu> | 2001-04-20 21:50:06 +0000 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2001-04-20 21:50:06 +0000 |
commit | 39710cd58235f371ae0196e70128e5570c326e71 (patch) | |
tree | 42ac48ddd0337dccaf36bac222a2e025b1fc769f | |
parent | 6e6ee8ca048c64c0824158e6e61d4a33af6c439c (diff) |
In ANSI C (and in pre-ANSI UNIX implementations), if you return from
"main()", the program exits, and exits with an exit status equal to the
return value of "main()", so "return 0;" is sufficient at the end of
"main()".
svn path=/trunk/; revision=3350
-rw-r--r-- | tethereal.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/tethereal.c b/tethereal.c index 373a2a76fc..171c36407d 100644 --- a/tethereal.c +++ b/tethereal.c @@ -1,6 +1,6 @@ /* tethereal.c * - * $Id: tethereal.c,v 1.81 2001/04/20 19:41:42 gram Exp $ + * $Id: tethereal.c,v 1.82 2001/04/20 21:50:06 guy Exp $ * * Ethereal - Network traffic analyzer * By Gerald Combs <gerald@zing.org> @@ -614,8 +614,7 @@ main(int argc, char *argv[]) epan_cleanup(); - exit(0); - return 0; /* Silence compiler warnings */ + return 0; } #ifdef HAVE_LIBPCAP |