summaryrefslogtreecommitdiffstats
path: root/usr.bin/time
diff options
context:
space:
mode:
authordwmalone <dwmalone@FreeBSD.org>2001-12-03 21:32:01 +0000
committerdwmalone <dwmalone@FreeBSD.org>2001-12-03 21:32:01 +0000
commit4713a986f4be5ac311cf38a4c7205a7e1019fcc8 (patch)
treef5f42662d0734e947545cd8491f545fa10d82a53 /usr.bin/time
parentcffa7a579a110b593549c29813de4ecc08cb5285 (diff)
downloadFreeBSD-src-4713a986f4be5ac311cf38a4c7205a7e1019fcc8.zip
FreeBSD-src-4713a986f4be5ac311cf38a4c7205a7e1019fcc8.tar.gz
Fix one warning - still not warns clean.
Diffstat (limited to 'usr.bin/time')
-rw-r--r--usr.bin/time/time.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.bin/time/time.c b/usr.bin/time/time.c
index 2bf61d5..8bbf737 100644
--- a/usr.bin/time/time.c
+++ b/usr.bin/time/time.c
@@ -219,7 +219,7 @@ main(argc, argv)
ru.ru_nivcsw, "involuntary context switches");
}
if (exitonsig) {
- if (signal(exitonsig, SIG_DFL) < 0)
+ if (signal(exitonsig, SIG_DFL) == SIG_ERR)
perror("signal");
else
kill(getpid(), exitonsig);
OpenPOWER on IntegriCloud