summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorpjd <pjd@FreeBSD.org>2013-08-18 10:33:46 +0000
committerpjd <pjd@FreeBSD.org>2013-08-18 10:33:46 +0000
commit6e8f2d848769a398fecc80ef93840372e88ac7a8 (patch)
treef1b63a5745109166947aca7016709ea3db6e6207 /lib
parent6e04ef92e419b3f03d968891e01d1201c9253bdc (diff)
downloadFreeBSD-src-6e8f2d848769a398fecc80ef93840372e88ac7a8.zip
FreeBSD-src-6e8f2d848769a398fecc80ef93840372e88ac7a8.tar.gz
Make example more correct (errstr is a pointer, not boolean).
Diffstat (limited to 'lib')
-rw-r--r--lib/libc/stdlib/strtonum.32
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/libc/stdlib/strtonum.3 b/lib/libc/stdlib/strtonum.3
index b83aadd..ed26995 100644
--- a/lib/libc/stdlib/strtonum.3
+++ b/lib/libc/stdlib/strtonum.3
@@ -97,7 +97,7 @@ int iterations;
const char *errstr;
iterations = strtonum(optarg, 1, 64, &errstr);
-if (errstr)
+if (errstr != NULL)
errx(1, "number of iterations is %s: %s", errstr, optarg);
.Ed
.Pp
OpenPOWER on IntegriCloud