summaryrefslogtreecommitdiff
path: root/src/test
diff options
context:
space:
mode:
authorThomas Hindoe Paaboel Andersen <phomes@gmail.com>2014-07-16 08:52:11 +0200
committerThomas Hindoe Paaboel Andersen <phomes@gmail.com>2014-07-16 08:52:11 +0200
commiteda8090ba9abc7d00f30e2b4cb34273cde799704 (patch)
treebc957567fafd03e95aa201695ecdc34c01a50567 /src/test
parent4bf04322b8b7ecca4f3d65cfc642d0ac16356129 (diff)
test-socket-util: silence warnings
Diffstat (limited to 'src/test')
-rw-r--r--src/test/test-socket-util.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/test/test-socket-util.c b/src/test/test-socket-util.c
index 96812e5058..4e90590599 100644
--- a/src/test/test-socket-util.c
+++ b/src/test/test-socket-util.c
@@ -226,7 +226,7 @@ static void *connect_thread(void *arg) {
}
static void test_nameinfo_pretty(void) {
- _cleanup_free_ char *stdin = NULL, *localhost = NULL;
+ _cleanup_free_ char *stdin_name = NULL, *localhost = NULL;
union sockaddr_union s = {
.in.sin_family = AF_INET,
@@ -238,8 +238,8 @@ static void test_nameinfo_pretty(void) {
union sockaddr_union c = {};
socklen_t slen = sizeof(c.in), clen = sizeof(c.in);
- _cleanup_close_ int sfd = -1, cfd = -1, afd = -1;
- r = getnameinfo_pretty(STDIN_FILENO, &stdin);
+ _cleanup_close_ int sfd = -1, cfd = -1;
+ r = getnameinfo_pretty(STDIN_FILENO, &stdin_name);
log_info("No connection remote: %s", strerror(-r));
assert_se(r < 0);