]> git.cworth.org Git - notmuch/commitdiff
smtp-dummy: Prefer return rather than exit() in main.
authorCarl Worth <cworth@cworth.org>
Tue, 21 Jun 2011 21:54:10 +0000 (14:54 -0700)
committerCarl Worth <cworth@cworth.org>
Wed, 22 Jun 2011 13:38:33 +0000 (06:38 -0700)
The main() function should be written as just another function with a
return value. This allows for more reliable code reuse. Imagine that
main() grows too large and needs to be factored into multiple
functions. At that point, exit() is probably the wrong thing, yet can
also be hard to notice as it's in less-frequently-tested exceptional
cases.


No differences found