diff options
author | robertabcd <robertabcd@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2013-10-21 13:32:05 +0800 |
---|---|---|
committer | robertabcd <robertabcd@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2013-10-21 13:32:05 +0800 |
commit | 14b5fab890c5e91c850b678f2edf02c64f75fa85 (patch) | |
tree | a3066a9b756976bb626569fd1d315417f93cd2d1 | |
parent | f04713927e074e61b6a33fda15cf787212cd9a7f (diff) | |
download | pttbbs-14b5fab890c5e91c850b678f2edf02c64f75fa85.tar pttbbs-14b5fab890c5e91c850b678f2edf02c64f75fa85.tar.gz pttbbs-14b5fab890c5e91c850b678f2edf02c64f75fa85.tar.bz2 pttbbs-14b5fab890c5e91c850b678f2edf02c64f75fa85.tar.lz pttbbs-14b5fab890c5e91c850b678f2edf02c64f75fa85.tar.xz pttbbs-14b5fab890c5e91c850b678f2edf02c64f75fa85.tar.zst pttbbs-14b5fab890c5e91c850b678f2edf02c64f75fa85.zip |
Fix build breakage. Futher investigation on command return values needed.
git-svn-id: http://opensvn.csie.org/pttbbs/trunk@5884 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
-rw-r--r-- | pttbbs/innbbsd/innbbsd.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/pttbbs/innbbsd/innbbsd.c b/pttbbs/innbbsd/innbbsd.c index fee32aba..74db6f44 100644 --- a/pttbbs/innbbsd/innbbsd.c +++ b/pttbbs/innbbsd/innbbsd.c @@ -28,6 +28,9 @@ * > 300 DBZ Server ... < query <mid> > 250 <recno> ... > 450 NOT FOUND! */ +// FIXME: some commands do not properly return a meaningful value. +// And the caller is not checking return values either. + static int CMDhelp ARG((ClientType *)); static int CMDquit ARG((ClientType *)); static int CMDihave ARG((ClientType *)); @@ -718,7 +721,7 @@ CMDihave(client) client->fd = -1; client->mode = 0; client->ihavefail++; - return; + return 1; } else { fprintf(argv->out, "235\r\n"); verboselog("Ihave Put: 235\n"); |