Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ruanhaishen
hiredis
Commits
c923fdf0
Commit
c923fdf0
authored
Aug 14, 2012
by
Pieter Noordhuis
Browse files
sockaddr_in.sin_len is a BSD-ism
parent
7532d850
Changes
1
Hide whitespace changes
Inline
Side-by-side
test/test-handle.c
View file @
c923fdf0
...
...
@@ -157,7 +157,6 @@ TEST(connect_gai_redis_address) {
assert
(
address
.
sa_addrlen
==
sizeof
(
struct
sockaddr_in
));
/* Match sockaddr specific fields */
assert
(
address
.
sa_addr
.
in
.
sin_len
==
sizeof
(
struct
sockaddr_in
));
assert
(
address
.
sa_addr
.
in
.
sin_family
==
AF_INET
);
assert
(
ntohs
(
address
.
sa_addr
.
in
.
sin_port
)
==
redis_port
());
assert
(
strcmp
(
inet_ntoa
(
address
.
sa_addr
.
in
.
sin_addr
),
"127.0.0.1"
)
==
0
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment