projects
/
kopensolaris-gnu
/
glibc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
01c67d2
)
(bindresvport): Don't set errno before the loop.
author
drepper
<drepper>
Mon, 23 May 2005 17:48:58 +0000
(17:48 +0000)
committer
drepper
<drepper>
Mon, 23 May 2005 17:48:58 +0000
(17:48 +0000)
sunrpc/bindrsvprt.c
patch
|
blob
|
history
diff --git
a/sunrpc/bindrsvprt.c
b/sunrpc/bindrsvprt.c
index
2cd40a0
..
39c1e80
100644
(file)
--- a/
sunrpc/bindrsvprt.c
+++ b/
sunrpc/bindrsvprt.c
@@
-43,7
+43,6
@@
int
bindresvport (int sd, struct sockaddr_in *sin)
{
- int res;
static short port;
struct sockaddr_in myaddr;
int i;
@@
-70,8
+69,9
@@
bindresvport (int sd, struct sockaddr_in *sin)
{
port = (__getpid () % NPORTS) + STARTPORT;
}
- res = -1;
- __set_errno (EADDRINUSE);
+
+ /* Initialize to make gcc happy. */
+ int res = -1;
int nports = ENDPORT - startport + 1;
again: