diff options
author | Theo Buehler <tb@cvs.openbsd.org> | 2018-02-10 00:00:48 +0000 |
---|---|---|
committer | Theo Buehler <tb@cvs.openbsd.org> | 2018-02-10 00:00:48 +0000 |
commit | 924ab3217de9209562b74c83f8e6e2f60ee51c4f (patch) | |
tree | 1627e3d0a06b7b22a9218b703ef1eac4bfe9f5a0 | |
parent | 3aacaac95ff5280423fdb31fcf5fc4e27079cda5 (diff) |
Use return instead of exit from main.
-rw-r--r-- | usr.bin/leave/leave.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.bin/leave/leave.c b/usr.bin/leave/leave.c index 78abf8eba8b..9a82a7ed972 100644 --- a/usr.bin/leave/leave.c +++ b/usr.bin/leave/leave.c @@ -1,4 +1,4 @@ -/* $OpenBSD: leave.c,v 1.18 2018/02/09 23:12:13 cheloha Exp $ */ +/* $OpenBSD: leave.c,v 1.19 2018/02/10 00:00:47 tb Exp $ */ /* $NetBSD: leave.c,v 1.4 1995/07/03 16:50:13 phil Exp $ */ /* @@ -73,7 +73,7 @@ main(int argc, char *argv[]) (void)fputs("When do you have to leave? ", stdout); cp = fgets(buf, sizeof(buf), stdin); if (cp == NULL || *cp == '\n') - exit(0); + return 0; } else if (argc > 2) usage(); else @@ -116,7 +116,7 @@ main(int argc, char *argv[]) secs -= t->tm_sec; /* aim for beginning of minute */ } doalarm(secs); - exit(0); + return 0; } static void |