diff options
author | pjd <pjd@FreeBSD.org> | 2013-08-18 10:33:46 +0000 |
---|---|---|
committer | pjd <pjd@FreeBSD.org> | 2013-08-18 10:33:46 +0000 |
commit | 6e8f2d848769a398fecc80ef93840372e88ac7a8 (patch) | |
tree | f1b63a5745109166947aca7016709ea3db6e6207 /lib/libc/stdlib | |
parent | 6e04ef92e419b3f03d968891e01d1201c9253bdc (diff) | |
download | FreeBSD-src-6e8f2d848769a398fecc80ef93840372e88ac7a8.zip FreeBSD-src-6e8f2d848769a398fecc80ef93840372e88ac7a8.tar.gz |
Make example more correct (errstr is a pointer, not boolean).
Diffstat (limited to 'lib/libc/stdlib')
-rw-r--r-- | lib/libc/stdlib/strtonum.3 | 2 |
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 |