summaryrefslogtreecommitdiffstats
path: root/innbbsd/inntobbs.c
diff options
context:
space:
mode:
authorkcwu <kcwu@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2005-03-20 12:24:45 +0800
committerkcwu <kcwu@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2005-03-20 12:24:45 +0800
commit4470099ad8bdacec874b7c65b40bb9fb71d3efe0 (patch)
tree0e83e39c58de6dd3c237a2645524c178e8585a54 /innbbsd/inntobbs.c
parent2a10ff3291b3c5e497757cc32b9306c88133825a (diff)
downloadpttbbs-4470099ad8bdacec874b7c65b40bb9fb71d3efe0.tar
pttbbs-4470099ad8bdacec874b7c65b40bb9fb71d3efe0.tar.gz
pttbbs-4470099ad8bdacec874b7c65b40bb9fb71d3efe0.tar.bz2
pttbbs-4470099ad8bdacec874b7c65b40bb9fb71d3efe0.tar.lz
pttbbs-4470099ad8bdacec874b7c65b40bb9fb71d3efe0.tar.xz
pttbbs-4470099ad8bdacec874b7c65b40bb9fb71d3efe0.tar.zst
pttbbs-4470099ad8bdacec874b7c65b40bb9fb71d3efe0.zip
make gcc-3.4 happy
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@2665 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'innbbsd/inntobbs.c')
-rw-r--r--innbbsd/inntobbs.c32
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()
{