Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sbin/ifconfig perror is obsolete, use warn and add missing p...
details: https://anonhg.NetBSD.org/src/rev/11e311cc10e9
branches: trunk
changeset: 325828:11e311cc10e9
user: christos <christos%NetBSD.org@localhost>
date: Wed Jan 08 01:56:20 2014 +0000
description:
perror is obsolete, use warn and add missing paren.
diffstat:
sbin/ifconfig/ieee80211.c | 10 +++++-----
1 files changed, 5 insertions(+), 5 deletions(-)
diffs (45 lines):
diff -r 79728698d369 -r 11e311cc10e9 sbin/ifconfig/ieee80211.c
--- a/sbin/ifconfig/ieee80211.c Wed Jan 08 01:47:31 2014 +0000
+++ b/sbin/ifconfig/ieee80211.c Wed Jan 08 01:56:20 2014 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: ieee80211.c,v 1.26 2014/01/07 20:25:24 degroote Exp $ */
+/* $NetBSD: ieee80211.c,v 1.27 2014/01/08 01:56:20 christos Exp $ */
/*
* Copyright (c) 1983, 1993
@@ -31,7 +31,7 @@
#include <sys/cdefs.h>
#ifndef lint
-__RCSID("$NetBSD: ieee80211.c,v 1.26 2014/01/07 20:25:24 degroote Exp $");
+__RCSID("$NetBSD: ieee80211.c,v 1.27 2014/01/08 01:56:20 christos Exp $");
#endif /* not lint */
#include <sys/param.h>
@@ -466,7 +466,7 @@
struct ifreq ifr;
if (direct_ioctl(env, SIOCGIFFLAGS, &ifr) == -1) {
- perror("ioctl(SIOCGIFFLAGS");
+ warn("ioctl(SIOCGIFFLAGS)");
return -1;
}
@@ -739,7 +739,7 @@
sroute = prog_socket(PF_ROUTE, SOCK_RAW, 0);
if (sroute < 0) {
- perror("socket(PF_ROUTE,SOCK_RAW)");
+ warn("socket(PF_ROUTE,SOCK_RAW)");
return;
}
/* NB: only root can trigger a scan so ignore errors */
@@ -750,7 +750,7 @@
do {
if (prog_read(sroute, buf, sizeof(buf)) < 0) {
- perror("read(PF_ROUTE)");
+ warn("read(PF_ROUTE)");
break;
}
rtm = (struct rt_msghdr *) buf;
Home |
Main Index |
Thread Index |
Old Index