* libc/rexec.cc (cygwin_rexec): Obvious (?) fix to correct a gcc warning - set
port to zero first thing in the function.
This commit is contained in:
parent
0a22f2e537
commit
49bd27c47c
|
@ -1,3 +1,8 @@
|
||||||
|
2006-07-04 Christopher Faylor <cgf@timesys.com>
|
||||||
|
|
||||||
|
* libc/rexec.cc (cygwin_rexec): Obvious (?) fix to correct a gcc
|
||||||
|
warning - set port to zero first thing in the function.
|
||||||
|
|
||||||
2006-07-04 Corinna Vinschen <corinna@vinschen.de>
|
2006-07-04 Corinna Vinschen <corinna@vinschen.de>
|
||||||
|
|
||||||
* signal.cc (signal): Set sa_mask to sig.
|
* signal.cc (signal): Set sa_mask to sig.
|
||||||
|
|
|
@ -317,7 +317,7 @@ cygwin_rexec (char **ahost, unsigned short rport, char *name, char *pass,
|
||||||
{
|
{
|
||||||
struct sockaddr_in sin, sin2, from;
|
struct sockaddr_in sin, sin2, from;
|
||||||
struct hostent *hp;
|
struct hostent *hp;
|
||||||
u_short port;
|
u_short port = 0;
|
||||||
int s, timo = 1, s3;
|
int s, timo = 1, s3;
|
||||||
char c;
|
char c;
|
||||||
char ahostbuf[INTERNET_MAX_HOST_NAME_LENGTH + 1];
|
char ahostbuf[INTERNET_MAX_HOST_NAME_LENGTH + 1];
|
||||||
|
@ -359,7 +359,6 @@ retry:
|
||||||
}
|
}
|
||||||
if (fd2p == 0) {
|
if (fd2p == 0) {
|
||||||
(void) write(s, "", 1);
|
(void) write(s, "", 1);
|
||||||
port = 0;
|
|
||||||
} else {
|
} else {
|
||||||
char num[8];
|
char num[8];
|
||||||
int s2, sin2len;
|
int s2, sin2len;
|
||||||
|
|
Loading…
Reference in New Issue