projects
/
openvswitch
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bc5ef83
)
tests: Cleanup getsockname argument warning
author
Justin Pettit
<jpettit@nicira.com>
Tue, 25 Aug 2009 23:34:45 +0000
(16:34 -0700)
committer
Justin Pettit
<jpettit@nicira.com>
Tue, 25 Aug 2009 23:37:37 +0000
(16:37 -0700)
The second argument was being passed in as a sockaddr_in, when it should
be a sockaddr. This commit cleans up the warning by casting it.
tests/test-vconn.c
patch
|
blob
|
history
diff --git
a/tests/test-vconn.c
b/tests/test-vconn.c
index 7f85137af4c87af6e7442e2d39aaf8aac23d1691..1bcd8c62f717539f8fa1ad5e0fa2d5d959588019 100644
(file)
--- a/
tests/test-vconn.c
+++ b/
tests/test-vconn.c
@@
-78,7
+78,7
@@
fpv_create(const char *type, struct fake_pvconn *fpv)
/* Retrieve socket's port number. */
sin_len = sizeof sin;
- if (getsockname(fd, &sin, &sin_len) < 0) {
+ if (getsockname(fd,
(struct sockaddr *)
&sin, &sin_len) < 0) {
ovs_fatal(errno, "failed to read TCP socket name");
}
if (sin_len != sizeof sin || sin.sin_family != AF_INET) {