chiark / gitweb /
Use EXIT_SUCCESS and EXIT_FAILURE
authorBen Harris <bjh21@bjh21.me.uk>
Sun, 10 Nov 2024 09:27:31 +0000 (09:27 +0000)
committerBen Harris <bjh21@bjh21.me.uk>
Sun, 10 Nov 2024 09:27:31 +0000 (09:27 +0000)
commitc2e45853f703551924e17f6be1194ed026fcbd17
tree9dda78f82a701127987b13fdc30a0bc1bd6996e7
parentcba03ce5fd0a63bf05dfb00ed5ba5769d0040a3f
Use EXIT_SUCCESS and EXIT_FAILURE

This is a bit of C pedantry.  POSIX requires that an exit status of
zero is success and non-zero is failure, but the C standard says no
such thing.  Instead it provides EXIT_SUCCESS and EXIT_FAILURE.  Since
Bedstead aspires to work on non-POSIX systems, it should use the
defined constants.  Also removing magic numbers is a good thing.
bedstead.c