svn commit: r301963 - head/usr.sbin/cpucontrol
Konstantin Belousov
kib at FreeBSD.org
Thu Jun 16 12:08:26 UTC 2016
Author: kib
Date: Thu Jun 16 12:08:25 2016
New Revision: 301963
URL: https://svnweb.freebsd.org/changeset/base/301963
Log:
Return usual error indicator to shell.
Sponsored by: The FreeBSD Foundation
MFC after: 1 week
Approved by: re (hrs)
Modified:
head/usr.sbin/cpucontrol/cpucontrol.c
Modified: head/usr.sbin/cpucontrol/cpucontrol.c
==============================================================================
--- head/usr.sbin/cpucontrol/cpucontrol.c Thu Jun 16 12:07:40 2016 (r301962)
+++ head/usr.sbin/cpucontrol/cpucontrol.c Thu Jun 16 12:08:25 2016 (r301963)
@@ -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);
}
More information about the svn-src-all
mailing list