svn commit: r204178 - head/games/fortune/fortune

Ulrich Spoerlein uqs at FreeBSD.org
Sun Feb 21 21:03:15 UTC 2010


Author: uqs
Date: Sun Feb 21 21:03:15 2010
New Revision: 204178
URL: http://svn.freebsd.org/changeset/base/204178

Log:
  Prefer exit(0) from main over return(0).
  
  Although not explicitly mentioned in style(9), it allows for easier
  grepping of exit points. This reverts part of r203926.
  
  Requested by:	des
  Approved by:	philip (mentor)

Modified:
  head/games/fortune/fortune/fortune.c

Modified: head/games/fortune/fortune/fortune.c
==============================================================================
--- head/games/fortune/fortune/fortune.c	Sun Feb 21 19:56:47 2010	(r204177)
+++ head/games/fortune/fortune/fortune.c	Sun Feb 21 21:03:15 2010	(r204178)
@@ -216,7 +216,7 @@ main(int argc, char *argv[])
 		sleep((unsigned int) max(Fort_len / CPERS, MINW));
 	}
 
-	return (0);
+	exit(0);
 }
 
 void


More information about the svn-src-all mailing list