From 6e8f2d848769a398fecc80ef93840372e88ac7a8 Mon Sep 17 00:00:00 2001 From: pjd Date: Sun, 18 Aug 2013 10:33:46 +0000 Subject: Make example more correct (errstr is a pointer, not boolean). --- lib/libc/stdlib/strtonum.3 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- cgit v1.1