svn commit: r254483 - head/lib/libc/stdlib

Pawel Jakub Dawidek pjd at FreeBSD.org
Sun Aug 18 10:33:47 UTC 2013


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


More information about the svn-src-head mailing list