diff options
Diffstat (limited to 'innbbsd')
-rw-r--r-- | innbbsd/inntobbs.c | 32 |
1 files changed, 16 insertions, 16 deletions
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() { |