]> git.ipfire.org Git - thirdparty/coreutils.git/commit
yes.c: do not use exit after error
authorMarek Polacek <mpolacek@redhat.com>
Fri, 27 May 2011 07:25:11 +0000 (09:25 +0200)
committerEric Blake <eblake@redhat.com>
Wed, 1 Jun 2011 14:05:29 +0000 (08:05 -0600)
commitcc8ee4d351028b0303ae9bad0103df6c2dde8cb6
tree2e835868344813ffc4593930900904424c26eab3
parente7b4bf4b57efb699c87f03c1173d812ea34cb618
yes.c: do not use exit after error

I think it would be better to exit through the error() and not
to call the exit() after the error().  This way we can get rid of
one function call (and curly brackets).

* src/yes.c (main): Exit through the error(), remove exit() call
after error().
src/yes.c