From owner-p4-projects@FreeBSD.ORG Fri Dec 3 23:24:35 2004 Return-Path: Delivered-To: p4-projects@freebsd.org Received: by hub.freebsd.org (Postfix, from userid 32767) id 9890816A4D0; Fri, 3 Dec 2004 23:24:35 +0000 (GMT) Delivered-To: perforce@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 767A016A4CE for ; Fri, 3 Dec 2004 23:24:35 +0000 (GMT) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id 66CF643D45 for ; Fri, 3 Dec 2004 23:24:35 +0000 (GMT) (envelope-from sam@freebsd.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.13.1/8.13.1) with ESMTP id iB3NOZjW004686 for ; Fri, 3 Dec 2004 23:24:35 GMT (envelope-from sam@freebsd.org) Received: (from perforce@localhost) by repoman.freebsd.org (8.13.1/8.13.1/Submit) id iB3NOZAF004683 for perforce@freebsd.org; Fri, 3 Dec 2004 23:24:35 GMT (envelope-from sam@freebsd.org) Date: Fri, 3 Dec 2004 23:24:35 GMT Message-Id: <200412032324.iB3NOZAF004683@repoman.freebsd.org> X-Authentication-Warning: repoman.freebsd.org: perforce set sender to sam@freebsd.org using -f From: Sam Leffler To: Perforce Change Reviews Subject: PERFORCE change 66372 for review X-BeenThere: p4-projects@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: p4 projects tree changes List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 03 Dec 2004 23:24:36 -0000 http://perforce.freebsd.org/chv.cgi?CH=66372 Change 66372 by sam@sam_ebb on 2004/12/03 23:23:41 replace perror with warn and identify the parameters on failure Affected files ... .. //depot/projects/wifi/sbin/ifconfig/af_inet6.c#4 edit Differences ... ==== //depot/projects/wifi/sbin/ifconfig/af_inet6.c#4 (text+ko) ==== @@ -203,12 +203,12 @@ strncpy(ifr6.ifr_name, ifr.ifr_name, sizeof(ifr.ifr_name)); if ((s6 = socket(AF_INET6, SOCK_DGRAM, 0)) < 0) { - perror("ifconfig: socket"); + warn("socket(AF_INET6,SOCK_DGRAM)"); return; } ifr6.ifr_addr = *sin; if (ioctl(s6, SIOCGIFAFLAG_IN6, &ifr6) < 0) { - perror("ifconfig: ioctl(SIOCGIFAFLAG_IN6)"); + warn("ioctl(SIOCGIFAFLAG_IN6)"); close(s6); return; } @@ -216,7 +216,7 @@ memset(&lifetime, 0, sizeof(lifetime)); ifr6.ifr_addr = *sin; if (ioctl(s6, SIOCGIFALIFETIME_IN6, &ifr6) < 0) { - perror("ifconfig: ioctl(SIOCGIFALIFETIME_IN6)"); + warn("ioctl(SIOCGIFALIFETIME_IN6)"); close(s6); return; }