chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
[PATCH] sync klibc with release 0.95
[elogind.git]
/
klibc
/
klibc
/
inet
/
bindresvport.c
diff --git
a/klibc/klibc/inet/bindresvport.c
b/klibc/klibc/inet/bindresvport.c
index b5f327bb33091a89027fc9f1834460f7491171ef..c30054edfd326566e95b0af94bcaa8ed79201f93 100644
(file)
--- a/
klibc/klibc/inet/bindresvport.c
+++ b/
klibc/klibc/inet/bindresvport.c
@@
-37,7
+37,7
@@
int bindresvport(int sd, struct sockaddr_in *sin)
for (i = 0; i < NUM_PORTS; i++, port++) {
sin->sin_port = htons(port);
for (i = 0; i < NUM_PORTS; i++, port++) {
sin->sin_port = htons(port);
- if ((ret = bind(sd, sin, sizeof(*sin))) != -1)
+ if ((ret = bind(sd,
(struct sockaddr *)&
sin, sizeof(*sin))) != -1)
break;
if (port == END_PORT)
port = START_PORT;
break;
if (port == END_PORT)
port = START_PORT;