Author: pjd
Date: Sun Aug 18 10:33:46 2013
New Revision: 254483
URL: http://svnweb.freebsd.org/changeset/base/254483
Log:
Make example more correct (errstr is a pointer, not boolean).
Modified:
head/lib/libc/stdlib/strtonum.3
Modified: head/lib/libc/stdlib/strtonum.3
==============================================================================
--- head/lib/libc/stdlib/strtonum.3 Sun Aug 18 10:31:30 2013
(r254482)
+++ head/lib/libc/stdlib/strtonum.3 Sun Aug 18 10:33:46 2013
(r254483)
@@ -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
_______________________________________________
[email protected] mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "[email protected]"