Fix shadowing sin()
This commit is contained in:
parent
089ff81dd0
commit
3980885449
14
spawn-fcgi.c
14
spawn-fcgi.c
@ -174,15 +174,15 @@ int create_sockaddr() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (opts.port != 0) {
|
if (opts.port != 0) {
|
||||||
struct sockaddr_in *sin;
|
struct sockaddr_in *s_in;
|
||||||
sin = g_malloc0(sizeof(struct sockaddr_in));
|
s_in = g_malloc0(sizeof(struct sockaddr_in));
|
||||||
sin->sin_family = AF_INET;
|
s_in->sin_family = AF_INET;
|
||||||
if (opts.addr)
|
if (opts.addr)
|
||||||
sin->sin_addr.s_addr = opts.addr;
|
s_in->sin_addr.s_addr = opts.addr;
|
||||||
else
|
else
|
||||||
sin->sin_addr.s_addr = htonl(INADDR_ANY);
|
s_in->sin_addr.s_addr = htonl(INADDR_ANY);
|
||||||
sin->sin_port = htons(opts.port);
|
s_in->sin_port = htons(opts.port);
|
||||||
data.sockaddr = (struct sockaddr*) sin;
|
data.sockaddr = (struct sockaddr*) s_in;
|
||||||
data.socklen = sizeof(struct sockaddr_in);
|
data.socklen = sizeof(struct sockaddr_in);
|
||||||
} else {
|
} else {
|
||||||
struct sockaddr_un *sun;
|
struct sockaddr_un *sun;
|
||||||
|
Loading…
Reference in New Issue
Block a user