git://git.onelab.eu
/
sliver-openvswitch.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
socket-util: closesocket() for Windows.
[sliver-openvswitch.git]
/
lib
/
socket-util.c
diff --git
a/lib/socket-util.c
b/lib/socket-util.c
index
a30408a
..
357594d
100644
(file)
--- a/
lib/socket-util.c
+++ b/
lib/socket-util.c
@@
-810,7
+810,7
@@
exit:
memset(ssp, 0, sizeof *ssp);
}
if (fd >= 0) {
- close(fd);
+ close
socket
(fd);
fd = -1;
}
} else {
@@
-958,7
+958,7
@@
error:
if (ssp) {
memset(ssp, 0, sizeof *ssp);
}
- close(fd);
+ close
socket
(fd);
return -error;
}