summaryrefslogtreecommitdiff
path: root/src/lib
diff options
context:
space:
mode:
authormmcc <>2016-02-07 20:50:24 +0000
committermmcc <>2016-02-07 20:50:24 +0000
commit9c4b29d018ab17000d3e1fb3265a4ea9505d0bac (patch)
tree3ac13c7bb3e7fbb5cf4047b3a750f6e7fa9170fc /src/lib
parente2e8fd05bbcd52932dd3120ace2668456afc6a96 (diff)
downloadopenbsd-9c4b29d018ab17000d3e1fb3265a4ea9505d0bac.tar.gz
openbsd-9c4b29d018ab17000d3e1fb3265a4ea9505d0bac.tar.bz2
openbsd-9c4b29d018ab17000d3e1fb3265a4ea9505d0bac.zip
compare pointer to NULL in example code
Diffstat (limited to 'src/lib')
-rw-r--r--src/lib/libc/stdlib/strtonum.36
1 files changed, 3 insertions, 3 deletions
diff --git a/src/lib/libc/stdlib/strtonum.3 b/src/lib/libc/stdlib/strtonum.3
index ed638cdbe2..43df0edc78 100644
--- a/src/lib/libc/stdlib/strtonum.3
+++ b/src/lib/libc/stdlib/strtonum.3
@@ -1,4 +1,4 @@
1.\" $OpenBSD: strtonum.3,v 1.17 2013/08/14 06:32:28 jmc Exp $ 1.\" $OpenBSD: strtonum.3,v 1.18 2016/02/07 20:50:24 mmcc Exp $
2.\" 2.\"
3.\" Copyright (c) 2004 Ted Unangst 3.\" Copyright (c) 2004 Ted Unangst
4.\" 4.\"
@@ -14,7 +14,7 @@
14.\" ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF 14.\" ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
15.\" OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. 15.\" OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
16.\" 16.\"
17.Dd $Mdocdate: August 14 2013 $ 17.Dd $Mdocdate: February 7 2016 $
18.Dt STRTONUM 3 18.Dt STRTONUM 3
19.Os 19.Os
20.Sh NAME 20.Sh NAME
@@ -96,7 +96,7 @@ int iterations;
96const char *errstr; 96const char *errstr;
97 97
98iterations = strtonum(optarg, 1, 64, &errstr); 98iterations = strtonum(optarg, 1, 64, &errstr);
99if (errstr) 99if (errstr != NULL)
100 errx(1, "number of iterations is %s: %s", errstr, optarg); 100 errx(1, "number of iterations is %s: %s", errstr, optarg);
101.Ed 101.Ed
102.Pp 102.Pp