chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
sd-dhcp-client: drop event DHCP_EVENT_NO_LEASE
[elogind.git]
/
src
/
test
/
test-socket-util.c
diff --git
a/src/test/test-socket-util.c
b/src/test/test-socket-util.c
index 96812e505815cb13781788997e6458330e077404..4e90590599a6d0e80e5ee91524746334f652a1ef 100644
(file)
--- 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) {
}
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,
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);
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);
log_info("No connection remote: %s", strerror(-r));
assert_se(r < 0);