From 2a10ff3291b3c5e497757cc32b9306c88133825a Mon Sep 17 00:00:00 2001 From: kcwu Date: Sun, 20 Mar 2005 04:22:22 +0000 Subject: make gcc-3.4 happy git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@2664 63ad8ddf-47c3-0310-b6dd-a9e9d9715204 --- innbbsd/bbslink.c | 40 ++++++++++++++++++++-------------------- 1 file changed, 20 insertions(+), 20 deletions(-) (limited to 'innbbsd') 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("\n"); + if (NoAction) + return; + status = tcpcommand("QUIT"); + if (status != 205 && status != 221) { + bbslog(" :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("\n"); - if (NoAction) - return; - status = tcpcommand("QUIT"); - if (status != 205 && status != 221) { - bbslog(" :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() -- cgit v1.2.3