diff options
author | wens <wens@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2009-03-21 19:47:30 +0800 |
---|---|---|
committer | wens <wens@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2009-03-21 19:47:30 +0800 |
commit | 4813f76942b44fa45159fcd743657ce203601464 (patch) | |
tree | bac6a970516342f06c672bafbdf11c93e95da7b6 /innbbsd | |
parent | 66a0e0e786412114be7e2439b816b2780601e016 (diff) | |
download | pttbbs-4813f76942b44fa45159fcd743657ce203601464.tar pttbbs-4813f76942b44fa45159fcd743657ce203601464.tar.gz pttbbs-4813f76942b44fa45159fcd743657ce203601464.tar.bz2 pttbbs-4813f76942b44fa45159fcd743657ce203601464.tar.lz pttbbs-4813f76942b44fa45159fcd743657ce203601464.tar.xz pttbbs-4813f76942b44fa45159fcd743657ce203601464.tar.zst pttbbs-4813f76942b44fa45159fcd743657ce203601464.zip |
Clean up some compile warnings (unused, signess)
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4448 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'innbbsd')
-rw-r--r-- | innbbsd/inndchannel.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/innbbsd/inndchannel.c b/innbbsd/inndchannel.c index 8465d4d0..187a7d49 100644 --- a/innbbsd/inndchannel.c +++ b/innbbsd/inndchannel.c @@ -48,7 +48,7 @@ int Junkhistory = 0; char *REMOTEUSERNAME, *REMOTEHOSTNAME; -static fd_set rfd, wfd, efd, orfd, owfd, oefd; +static fd_set rfd, wfd, efd, orfd; int channelreader(ClientType *); @@ -183,7 +183,7 @@ inndchannel(port, path) } time(&now); local = localtime(&now); - if (local != NULL & local->tm_hour == His_Maint_Hour && + if (local != NULL && local->tm_hour == His_Maint_Hour && local->tm_min >= His_Maint_Min) { if (!maint) { bbslog(":Maint: start (%d:%d).\n", local->tm_hour, local->tm_min); @@ -276,7 +276,7 @@ inndchannel(port, path) channelcreate(&client[i]); FD_SET(ns, &rfd); /* FD_SET(ns,&wfd); */ length = sizeof(there); - if (getpeername(ns, (struct sockaddr *) & there, &length) >= 0) { + if (getpeername(ns, (struct sockaddr *) & there, (socklen_t *) &length) >= 0) { name = (char *)my_rfc931_name(ns, (struct sockaddr_in *)&there); strncpy(client[i].username, name, 20); hp = (struct hostent *) gethostbyaddr((char *)&there.sin_addr, sizeof(struct in_addr), there.sin_family); @@ -594,7 +594,7 @@ main(argc, argv) char *port, *path; int c, errflag = 0; - extern INNBBSDhalt(); + extern int INNBBSDhalt(); /* * woju */ @@ -630,7 +630,7 @@ main(argc, argv) struct sockaddr_in there; int len = sizeof(there); int rel; - if ((rel = getsockname(0, (struct sockaddr *) & there, &len)) < 0) { + if ((rel = getsockname(0, (struct sockaddr *) & there, (socklen_t *) &len)) < 0) { fprintf(stdout, "You must run -i from inetd with inetd.conf line: \n"); fprintf(stdout, "service-port stream tcp wait bbs " BBSHOME "/innd/innbbsd innbbsd -i port\n"); fflush(stdout); |