summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDimitry Andric <dim@FreeBSD.org>2012-06-06 21:16:26 +0000
committerDimitry Andric <dim@FreeBSD.org>2012-06-06 21:16:26 +0000
commitf61ac9d9bd906891feadcabecfe2b92d9e3e97a4 (patch)
treedc6405b6650180193b1027284bd14354f728f9a2
parent6c9707c3b2d7d3a80890737c6e740adf8a603506 (diff)
Notes
-rw-r--r--lib/libc/include/port_before.h2
-rw-r--r--lib/libc/net/getaddrinfo.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/lib/libc/include/port_before.h b/lib/libc/include/port_before.h
index beef71d02607..304dd66df03f 100644
--- a/lib/libc/include/port_before.h
+++ b/lib/libc/include/port_before.h
@@ -17,6 +17,6 @@
var = _u.v; \
} while (0)
-#define UNUSED(x) (x) = (x)
+#define UNUSED(x) (void)(x)
#endif /* _PORT_BEFORE_H_ */
diff --git a/lib/libc/net/getaddrinfo.c b/lib/libc/net/getaddrinfo.c
index 8083c390b3b6..dc2641f731e3 100644
--- a/lib/libc/net/getaddrinfo.c
+++ b/lib/libc/net/getaddrinfo.c
@@ -464,7 +464,7 @@ getaddrinfo(const char *hostname, const char *servname,
}
error = get_portmatch(pai, servname);
if (error)
- ERR(error);
+ goto bad;
*pai = ai0;
}