Module Name: src Committed By: christos Date: Wed Jan 8 01:56:20 UTC 2014
Modified Files: src/sbin/ifconfig: ieee80211.c Log Message: perror is obsolete, use warn and add missing paren. To generate a diff of this commit: cvs rdiff -u -r1.26 -r1.27 src/sbin/ifconfig/ieee80211.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/sbin/ifconfig/ieee80211.c diff -u src/sbin/ifconfig/ieee80211.c:1.26 src/sbin/ifconfig/ieee80211.c:1.27 --- src/sbin/ifconfig/ieee80211.c:1.26 Tue Jan 7 15:25:24 2014 +++ src/sbin/ifconfig/ieee80211.c Tue Jan 7 20:56:20 2014 @@ -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 @@ scan_exec(prop_dictionary_t env, prop_di struct ifreq ifr; if (direct_ioctl(env, SIOCGIFFLAGS, &ifr) == -1) { - perror("ioctl(SIOCGIFFLAGS"); + warn("ioctl(SIOCGIFFLAGS)"); return -1; } @@ -739,7 +739,7 @@ scan_and_wait(prop_dictionary_t env) 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 @@ scan_and_wait(prop_dictionary_t env) do { if (prog_read(sroute, buf, sizeof(buf)) < 0) { - perror("read(PF_ROUTE)"); + warn("read(PF_ROUTE)"); break; } rtm = (struct rt_msghdr *) buf;