diff options
author | 2016-09-19 20:20:38 +0000 | |
---|---|---|
committer | 2016-09-19 20:20:38 +0000 | |
commit | 97b994225494e1e99a238daaa296684b25d58afc (patch) | |
tree | 1d88d31fcd1d950fa954bc59c81250bfcda01e7a | |
parent | Add pledge support to pstat (diff) | |
download | wireguard-openbsd-97b994225494e1e99a238daaa296684b25d58afc.tar.xz wireguard-openbsd-97b994225494e1e99a238daaa296684b25d58afc.zip |
Replace an exit(3) call in main() with a return to enable the stack
protector.
From Rafael Neves
-rw-r--r-- | usr.bin/renice/renice.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/renice/renice.c b/usr.bin/renice/renice.c index 28f3df542ce..7d770eac6c3 100644 --- a/usr.bin/renice/renice.c +++ b/usr.bin/renice/renice.c @@ -1,4 +1,4 @@ -/* $OpenBSD: renice.c,v 1.19 2015/10/22 07:52:29 deraadt Exp $ */ +/* $OpenBSD: renice.c,v 1.20 2016/09/19 20:20:38 bluhm Exp $ */ /* * Copyright (c) 2009, 2015 Todd C. Miller <Todd.Miller@courtesan.com> @@ -149,7 +149,7 @@ main(int argc, char **argv) } if (pri_type == RENICE_NONE) usage(); - exit(renice(params, p)); + return(renice(params, p)); } static int |