Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 20 Jan 2012 01:39:09 +0000 (UTC)
From:      Eitan Adler <eadler@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r230359 - head/usr.sbin/faithd
Message-ID:  <201201200139.q0K1d9Bg016946@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
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;
 	}



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201201200139.q0K1d9Bg016946>