Some lint stuff

This commit is contained in:
dcp1990 2005-06-19 01:17:44 +00:00
parent b0f6bc9a21
commit 3c63017f85

View file

@ -67,13 +67,12 @@ void *network(b)
{ {
int s, /* us,*/ sn; int s, /* us,*/ sn;
fd_set fds; fd_set fds;
int sin_size, ilen; int ilen;
pthread_t thr; pthread_t thr;
char cbuf[1]; char cbuf[2];
void* is;
struct sockaddr_un it; struct sockaddr_un it;
cbuf[0] = '\0'; cbuf[1] = '\0'; cbuf[0] = '\0'; cbuf[1] = '\0';
is = b; if(b == 0) b = 0;
if((s = socket(AF_LOCAL, SOCK_STREAM, 0)) == -1) { if((s = socket(AF_LOCAL, SOCK_STREAM, 0)) == -1) {
lprintf(error, "socket: %s\n", strerror(errno)); lprintf(error, "socket: %s\n", strerror(errno));
shutd(0x1|0x2|0x4|0x10|0x20); shutd(0x1|0x2|0x4|0x10|0x20);
@ -92,7 +91,6 @@ void *network(b)
shutd(0x1|0x2|0x4|0x10|0x20); shutd(0x1|0x2|0x4|0x10|0x20);
exit(-1); exit(-1);
} }
sin_size = sizeof(struct sockaddr_in);
for(;;) { for(;;) {
FD_ZERO(&fds); FD_ZERO(&fds);
FD_SET(s, &fds); FD_SET(s, &fds);
@ -125,6 +123,7 @@ void *network(b)
} }
} }
} }
/* NOTREACHED */
close(s); close(s);
unlink(SOCKETFILE); unlink(SOCKETFILE);
} }