summaryrefslogtreecommitdiff
path: root/src/lib/libc/stdlib
diff options
context:
space:
mode:
authormmcc <>2016-02-07 20:50:24 +0000
committermmcc <>2016-02-07 20:50:24 +0000
commit64550dd44c759e7be9834a688c8b91cfd3f5593a (patch)
tree3ac13c7bb3e7fbb5cf4047b3a750f6e7fa9170fc /src/lib/libc/stdlib
parentb0da4200672d59fc9ea66c08b5f36d7848ea6a37 (diff)
downloadopenbsd-64550dd44c759e7be9834a688c8b91cfd3f5593a.tar.gz
openbsd-64550dd44c759e7be9834a688c8b91cfd3f5593a.tar.bz2
openbsd-64550dd44c759e7be9834a688c8b91cfd3f5593a.zip
compare pointer to NULL in example code
Diffstat (limited to 'src/lib/libc/stdlib')
-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