Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/lib/libc/net use "%s" for err(), do not pass pointer directl...



details:   https://anonhg.NetBSD.org/src/rev/17389c77e263
branches:  trunk
changeset: 558895:17389c77e263
user:      itojun <itojun%NetBSD.org@localhost>
date:      Mon Mar 01 23:06:21 2004 +0000

description:
use "%s" for err(), do not pass pointer directly.  Pedro Martelletto

diffstat:

 lib/libc/net/getaddrinfo.3 |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r 2ec46e1a45a5 -r 17389c77e263 lib/libc/net/getaddrinfo.3
--- a/lib/libc/net/getaddrinfo.3        Mon Mar 01 23:01:18 2004 +0000
+++ b/lib/libc/net/getaddrinfo.3        Mon Mar 01 23:06:21 2004 +0000
@@ -1,4 +1,4 @@
-.\"    $NetBSD: getaddrinfo.3,v 1.32 2003/09/07 16:22:21 wiz Exp $
+.\"    $NetBSD: getaddrinfo.3,v 1.33 2004/03/01 23:06:21 itojun Exp $
 .\"    $KAME: getaddrinfo.3,v 1.32 2003/04/30 06:06:42 itojun Exp $
 .\"
 .\" Copyright (c) 1983, 1987, 1991, 1993
@@ -447,7 +447,7 @@
        break;  /* okay we got one */
 }
 if (s \*[Lt] 0) {
-       err(1, cause);
+       err(1, "%s", cause);
        /*NOTREACHED*/
 }
 freeaddrinfo(res0);
@@ -495,7 +495,7 @@
        nsock++;
 }
 if (nsock == 0) {
-       err(1, cause);
+       err(1, "%s", cause);
        /*NOTREACHED*/
 }
 freeaddrinfo(res0);



Home | Main Index | Thread Index | Old Index