aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Bühler <stbuehler@web.de>2008-11-17 09:54:35 +0100
committerStefan Bühler <stbuehler@web.de>2008-11-17 09:54:35 +0100
commit398088544900c2e774aa4dc837ea462879c7b6b2 (patch)
tree259a77c538539e3d1824147be65b3f9b484f2dd0
parent089ff81dd0665befd61f0da4a09424a32a1d61be (diff)
downloadspawn-fcgi2-398088544900c2e774aa4dc837ea462879c7b6b2.tar.gz
spawn-fcgi2-398088544900c2e774aa4dc837ea462879c7b6b2.zip
Fix shadowing sin()
-rw-r--r--spawn-fcgi.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/spawn-fcgi.c b/spawn-fcgi.c
index c7772a9..134545e 100644
--- a/spawn-fcgi.c
+++ b/spawn-fcgi.c
@@ -174,15 +174,15 @@ int create_sockaddr() {
}
if (opts.port != 0) {
- struct sockaddr_in *sin;
- sin = g_malloc0(sizeof(struct sockaddr_in));
- sin->sin_family = AF_INET;
+ struct sockaddr_in *s_in;
+ s_in = g_malloc0(sizeof(struct sockaddr_in));
+ s_in->sin_family = AF_INET;
if (opts.addr)
- sin->sin_addr.s_addr = opts.addr;
+ s_in->sin_addr.s_addr = opts.addr;
else
- sin->sin_addr.s_addr = htonl(INADDR_ANY);
- sin->sin_port = htons(opts.port);
- data.sockaddr = (struct sockaddr*) sin;
+ s_in->sin_addr.s_addr = htonl(INADDR_ANY);
+ s_in->sin_port = htons(opts.port);
+ data.sockaddr = (struct sockaddr*) s_in;
data.socklen = sizeof(struct sockaddr_in);
} else {
struct sockaddr_un *sun;