From 4470099ad8bdacec874b7c65b40bb9fb71d3efe0 Mon Sep 17 00:00:00 2001 From: kcwu Date: Sun, 20 Mar 2005 04:24:45 +0000 Subject: make gcc-3.4 happy git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@2665 63ad8ddf-47c3-0310-b6dd-a9e9d9715204 --- innbbsd/inntobbs.c | 32 ++++++++++++++++---------------- 1 file changed, 16 insertions(+), 16 deletions(-) (limited to 'innbbsd') diff --git a/innbbsd/inntobbs.c b/innbbsd/inntobbs.c index 7ac54a22..f40d4cf5 100644 --- a/innbbsd/inntobbs.c +++ b/innbbsd/inntobbs.c @@ -288,6 +288,22 @@ readlines(client) #endif } +void +article_init() +{ + int i; + static int article_inited = 0; + + if (article_inited) + return; + article_inited = 1; + + qsort(headertable, sizeof(headertable) / sizeof(header_t), sizeof(header_t), + headercmp); + for (i = 0; i < LASTHEADER; i++) + HEADER[i] = NULL; +} + int headervalue(inputheader) char *inputheader; @@ -309,22 +325,6 @@ headervalue(inputheader) return -1; } -void -article_init() -{ - int i; - static int article_inited = 0; - - if (article_inited) - return; - article_inited = 1; - - qsort(headertable, sizeof(headertable) / sizeof(header_t), sizeof(header_t), - headercmp); - for (i = 0; i < LASTHEADER; i++) - HEADER[i] = NULL; -} - #ifdef INNTOBBS_MAIN main() { -- cgit v1.2.3