Module Name: src
Committed By: joerg
Date: Fri Jun 15 19:54:21 UTC 2012
Modified Files:
src/external/bsd/bind/dist/lib/lwres: getnameinfo.c
Log Message:
Simplify ERR, so that it doesn't mess up Clang's
-Wsometimes-uninitialized scan on the function. This is tracked in LLVM
as http://llvm.org/bugs/show_bug.cgi?id=13093.
To generate a diff of this commit:
cvs rdiff -u -r1.3 -r1.4 src/external/bsd/bind/dist/lib/lwres/getnameinfo.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/external/bsd/bind/dist/lib/lwres/getnameinfo.c
diff -u src/external/bsd/bind/dist/lib/lwres/getnameinfo.c:1.3 src/external/bsd/bind/dist/lib/lwres/getnameinfo.c:1.4
--- src/external/bsd/bind/dist/lib/lwres/getnameinfo.c:1.3 Tue Jun 5 00:43:04 2012
+++ src/external/bsd/bind/dist/lib/lwres/getnameinfo.c Fri Jun 15 19:54:21 2012
@@ -1,4 +1,4 @@
-/* $NetBSD: getnameinfo.c,v 1.3 2012/06/05 00:43:04 christos Exp $ */
+/* $NetBSD: getnameinfo.c,v 1.4 2012/06/15 19:54:21 joerg Exp $ */
/*
* Portions Copyright (C) 2004, 2005, 2007, 2011, 2012 Internet Systems Consortium, Inc. ("ISC")
@@ -149,13 +149,9 @@ static struct afd {
#define ENI_SALEN 6
#define ENI_NOSOCKET 7
-/*!
- * The test against 0 is there to keep the Solaris compiler
- * from complaining about "end-of-loop code not reached".
- */
#define ERR(code) \
do { result = (code); \
- if (result != 0) goto cleanup; \
+ goto cleanup; \
} while (/*CONSTCOND*/0)
/*% lightweight resolver socket address structure to hostname and service name */