From owner-svn-src-all@FreeBSD.ORG Fri Jan 20 01:39:09 2012 Return-Path: Delivered-To: svn-src-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 465171065AB3; Fri, 20 Jan 2012 01:39:09 +0000 (UTC) (envelope-from eadler@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id 34FA48FC17; Fri, 20 Jan 2012 01:39:09 +0000 (UTC) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.4/8.14.4) with ESMTP id q0K1d923016948; Fri, 20 Jan 2012 01:39:09 GMT (envelope-from eadler@svn.freebsd.org) Received: (from eadler@localhost) by svn.freebsd.org (8.14.4/8.14.4/Submit) id q0K1d9Bg016946; Fri, 20 Jan 2012 01:39:09 GMT (envelope-from eadler@svn.freebsd.org) Message-Id: <201201200139.q0K1d9Bg016946@svn.freebsd.org> From: Eitan Adler Date: Fri, 20 Jan 2012 01:39:09 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r230359 - head/usr.sbin/faithd X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 20 Jan 2012 01:39:09 -0000 Author: eadler Date: Fri Jan 20 01:39:08 2012 New Revision: 230359 URL: http://svn.freebsd.org/changeset/base/230359 Log: Fix warning when compiling with gcc46: error: variable 'a' set but not used Approved by: dim, cperciva (mentor, blanket for pre-mentorship already-approved commits) MFC after: 3 days Modified: head/usr.sbin/faithd/prefix.c Modified: head/usr.sbin/faithd/prefix.c ============================================================================== --- head/usr.sbin/faithd/prefix.c Fri Jan 20 01:39:01 2012 (r230358) +++ head/usr.sbin/faithd/prefix.c Fri Jan 20 01:39:08 2012 (r230359) @@ -63,7 +63,6 @@ prefix_set(const char *s, struct prefix char *p = NULL, *q, *r; struct addrinfo hints, *res = NULL; int max; - char *a; p = strdup(s); if (!p) @@ -88,14 +87,11 @@ prefix_set(const char *s, struct prefix switch (prefix->a.ss_family) { case AF_INET: max = 32; - a = (char *)&((struct sockaddr_in *)&prefix->a)->sin_addr; break; case AF_INET6: max = 128; - a = (char *)&((struct sockaddr_in6 *)&prefix->a)->sin6_addr; break; default: - a = NULL; max = -1; break; }