diff options
author | kcwu <kcwu@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2005-03-20 12:22:22 +0800 |
---|---|---|
committer | kcwu <kcwu@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2005-03-20 12:22:22 +0800 |
commit | 2a10ff3291b3c5e497757cc32b9306c88133825a (patch) | |
tree | 894c2016d1aa8128afe6d7349130c002d5152315 /innbbsd/bbslink.c | |
parent | c4c971ce3c3f49c7b2744575ce529b878e9e11d4 (diff) | |
download | pttbbs-2a10ff3291b3c5e497757cc32b9306c88133825a.tar pttbbs-2a10ff3291b3c5e497757cc32b9306c88133825a.tar.gz pttbbs-2a10ff3291b3c5e497757cc32b9306c88133825a.tar.bz2 pttbbs-2a10ff3291b3c5e497757cc32b9306c88133825a.tar.lz pttbbs-2a10ff3291b3c5e497757cc32b9306c88133825a.tar.xz pttbbs-2a10ff3291b3c5e497757cc32b9306c88133825a.tar.zst pttbbs-2a10ff3291b3c5e497757cc32b9306c88133825a.zip |
make gcc-3.4 happy
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@2664 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'innbbsd/bbslink.c')
-rw-r--r-- | innbbsd/bbslink.c | 40 |
1 files changed, 20 insertions, 20 deletions
diff --git a/innbbsd/bbslink.c b/innbbsd/bbslink.c index 52d734c8..618ff7f5 100644 --- a/innbbsd/bbslink.c +++ b/innbbsd/bbslink.c @@ -1186,6 +1186,26 @@ cancel_outgoing(board, filename, from, subject) return 1; } +void +close_link() +{ + int status; + + if (Verbose) + printf("<close_link>\n"); + if (NoAction) + return; + status = tcpcommand("QUIT"); + if (status != 205 && status != 221) { + bbslog("<bbslink> :Err: Cannot quit message '%d %s'\n", status, (char *)tcpmessage()); + if (Verbose) + printf(":Err: Cannot quit message '%d %s'\n", status, (char *)tcpmessage()); + } + fclose(NNTPwfp); + fclose(NNTPrfp); + close(NNTP); +} + /* * send_nntplink open_link read_outgoing send_outgoing post_article * cancel_outgoing @@ -1342,26 +1362,6 @@ try_read_outgoing: return 0; } -void -close_link() -{ - int status; - - if (Verbose) - printf("<close_link>\n"); - if (NoAction) - return; - status = tcpcommand("QUIT"); - if (status != 205 && status != 221) { - bbslog("<bbslink> :Err: Cannot quit message '%d %s'\n", status, (char *)tcpmessage()); - if (Verbose) - printf(":Err: Cannot quit message '%d %s'\n", status, (char *)tcpmessage()); - } - fclose(NNTPwfp); - fclose(NNTPrfp); - close(NNTP); -} - /* * send_article() send_nntplink() read_outgoing() |