projects
/
profile
/
ivi
/
pulseaudio.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bb52a67
)
tests/ipacl-test: check inet_pton()
author
Marc-André Lureau
<marc-andre.lureau@nokia.com>
Tue, 17 Feb 2009 20:58:59 +0000
(22:58 +0200)
committer
Lennart Poettering
<lennart@poettering.net>
Thu, 19 Feb 2009 03:56:26 +0000
(
04:56
+0100)
src/tests/ipacl-test.c
patch
|
blob
|
history
diff --git
a/src/tests/ipacl-test.c
b/src/tests/ipacl-test.c
index
7b7564a
..
f89665c
100644
(file)
--- a/
src/tests/ipacl-test.c
+++ b/
src/tests/ipacl-test.c
@@
-25,6
+25,7
@@
#endif
#include "../pulsecore/winsock.h"
+#include "../pulsecore/macro.h"
#include <pulsecore/ipacl.h>
@@
-96,7
+97,7
@@
int main(int argc, char *argv[]) {
memset(&sa6, 0, sizeof(sa6));
sa6.sin6_family = AF_INET6;
sa6.sin6_port = htons(22);
-
inet_pton(AF_INET6, "::1", &sa6.sin6_addr
);
+
pa_assert_se(inet_pton(AF_INET6, "::1", &sa6.sin6_addr) == 1
);
r = connect(fd, (struct sockaddr*) &sa6, sizeof(sa6));
assert(r >= 0);