Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/lib/libc/stdlib PR/49640: Kamil Rytarowski: Improve error pr...
details: https://anonhg.NetBSD.org/src/rev/0851094f32dc
branches: trunk
changeset: 336684:0851094f32dc
user: christos <christos%NetBSD.org@localhost>
date: Tue Mar 10 13:00:58 2015 +0000
description:
PR/49640: Kamil Rytarowski: Improve error printing
diffstat:
lib/libc/stdlib/strtol.3 | 6 +++---
lib/libc/stdlib/strtoul.3 | 6 +++---
2 files changed, 6 insertions(+), 6 deletions(-)
diffs (54 lines):
diff -r 87aa6fa2f39d -r 0851094f32dc lib/libc/stdlib/strtol.3
--- a/lib/libc/stdlib/strtol.3 Tue Mar 10 12:59:32 2015 +0000
+++ b/lib/libc/stdlib/strtol.3 Tue Mar 10 13:00:58 2015 +0000
@@ -1,4 +1,4 @@
-.\" $NetBSD: strtol.3,v 1.29 2015/01/18 18:01:41 christos Exp $
+.\" $NetBSD: strtol.3,v 1.30 2015/03/10 13:00:58 christos Exp $
.\"
.\" Copyright (c) 1990, 1991, 1993
.\" The Regents of the University of California. All rights reserved.
@@ -33,7 +33,7 @@
.\"
.\" from: @(#)strtol.3 8.1 (Berkeley) 6/4/93
.\"
-.Dd December 27, 2014
+.Dd Match 10, 2015
.Dt STRTOL 3
.Os
.Sh NAME
@@ -243,7 +243,7 @@
int e;
intmax_t lval = strtoi(buf, NULL, 0, 1, 99, &e);
if (e)
- warn("conversion of `%s' to a number failed, using %jd",
+ warnc(e, "conversion of `%s' to a number failed, using %jd",
buf, lval);
.Ed
.Pp
diff -r 87aa6fa2f39d -r 0851094f32dc lib/libc/stdlib/strtoul.3
--- a/lib/libc/stdlib/strtoul.3 Tue Mar 10 12:59:32 2015 +0000
+++ b/lib/libc/stdlib/strtoul.3 Tue Mar 10 13:00:58 2015 +0000
@@ -1,4 +1,4 @@
-.\" $NetBSD: strtoul.3,v 1.28 2015/01/18 18:01:41 christos Exp $
+.\" $NetBSD: strtoul.3,v 1.29 2015/03/10 13:00:58 christos Exp $
.\"
.\" Copyright (c) 1990, 1991, 1993
.\" The Regents of the University of California. All rights reserved.
@@ -33,7 +33,7 @@
.\"
.\" from: @(#)strtoul.3 8.1 (Berkeley) 6/4/93
.\"
-.Dd December 27, 2014
+.Dd March 10, 2015
.Dt STRTOUL 3
.Os
.Sh NAME
@@ -240,7 +240,7 @@
int e;
uintmax_t lval = strtou(buf, NULL, 0, 1, 99, &e);
if (e)
- warn("conversion of `%s' to a number failed, using %ju",
+ warnc(e, "conversion of `%s' to a number failed, using %ju",
buf, lval);
.Ed
.Pp
Home |
Main Index |
Thread Index |
Old Index