diff options
Diffstat (limited to 'gpsd.c')
-rw-r--r-- | gpsd.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -2273,7 +2273,6 @@ int main(int argc, char *argv[]) for (i = 0; i < AFCOUNT; i++) { if (msocks[i] >= 0 && FD_ISSET(msocks[i], &rfds)) { socklen_t alen = (socklen_t) sizeof(fsin); - char *c_ip; /*@+matchanyintegral@*/ socket_t ssock = accept(msocks[i], (struct sockaddr *)&fsin, &alen); @@ -2285,6 +2284,7 @@ int main(int argc, char *argv[]) struct subscriber_t *client = NULL; int opts = fcntl(ssock, F_GETFL); static struct linger linger = { 1, RELEASE_TIMEOUT }; + char *c_ip; if (opts >= 0) (void)fcntl(ssock, F_SETFL, opts | O_NONBLOCK); |