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
_______________________________________________
[email protected] mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "[email protected]"