Date: Sun, 18 Aug 2013 10:33:46 +0000 (UTC) From: Pawel Jakub Dawidek <pjd@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r254483 - head/lib/libc/stdlib Message-ID: <201308181033.r7IAXk2p092422@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201308181033.r7IAXk2p092422>