Make example more correct (errstr is a pointer, not boolean).

This commit is contained in:
Pawel Jakub Dawidek 2013-08-18 10:33:46 +00:00
parent e11dc435ba
commit c65779d460

View File

@ -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