summaryrefslogtreecommitdiffstats
path: root/usr.sbin/cpucontrol
diff options
context:
space:
mode:
authorkib <kib@FreeBSD.org>2016-06-23 09:06:11 +0000
committerkib <kib@FreeBSD.org>2016-06-23 09:06:11 +0000
commit369966d04f9eb782f09bb1610d1ddf97f70eebe8 (patch)
treebeca250b89e620a61468cf1316fe08a9b6dfa197 /usr.sbin/cpucontrol
parent12d1906c2b0f60ccb7f9480833554ca5ea7e674e (diff)
downloadFreeBSD-src-369966d04f9eb782f09bb1610d1ddf97f70eebe8.zip
FreeBSD-src-369966d04f9eb782f09bb1610d1ddf97f70eebe8.tar.gz
MFC r301963:
Return usual error indicator to shell.
Diffstat (limited to 'usr.sbin/cpucontrol')
-rw-r--r--usr.sbin/cpucontrol/cpucontrol.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.sbin/cpucontrol/cpucontrol.c b/usr.sbin/cpucontrol/cpucontrol.c
index 69fdf3a..504ac50 100644
--- a/usr.sbin/cpucontrol/cpucontrol.c
+++ b/usr.sbin/cpucontrol/cpucontrol.c
@@ -481,5 +481,5 @@ main(int argc, char *argv[])
usage(); /* Only one command can be selected. */
}
SLIST_FREE(&datadirs, next, free);
- return (error);
+ return (error == 0 ? 0 : 1);
}
OpenPOWER on IntegriCloud