diff options
author | kcwu <kcwu@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2005-03-19 21:01:59 +0800 |
---|---|---|
committer | kcwu <kcwu@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2005-03-19 21:01:59 +0800 |
commit | c8b05dac46a8c39cbdf2ac80e7dbb18077e157cb (patch) | |
tree | 060e36fbaf43db10838eb01fb23ac130005e1001 /innbbsd/his.c | |
parent | 6eba59f302a382cb031543031b2b273ee85d796f (diff) | |
download | pttbbs-c8b05dac46a8c39cbdf2ac80e7dbb18077e157cb.tar pttbbs-c8b05dac46a8c39cbdf2ac80e7dbb18077e157cb.tar.gz pttbbs-c8b05dac46a8c39cbdf2ac80e7dbb18077e157cb.tar.bz2 pttbbs-c8b05dac46a8c39cbdf2ac80e7dbb18077e157cb.tar.lz pttbbs-c8b05dac46a8c39cbdf2ac80e7dbb18077e157cb.tar.xz pttbbs-c8b05dac46a8c39cbdf2ac80e7dbb18077e157cb.tar.zst pttbbs-c8b05dac46a8c39cbdf2ac80e7dbb18077e157cb.zip |
less warning
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@2645 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'innbbsd/his.c')
-rw-r--r-- | innbbsd/his.c | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/innbbsd/his.c b/innbbsd/his.c index ac9a3285..6ab68627 100644 --- a/innbbsd/his.c +++ b/innbbsd/his.c @@ -3,6 +3,7 @@ * * History file routines. */ +#include <stdlib.h> #include "innbbsconf.h" #include "bbslib.h" #include "his.h" @@ -23,12 +24,14 @@ STATIC char *LogName = "xindexchan"; #define DEFAULT_HIST_SIZE 100000 #endif +void hisincore(flag) int flag; { HISincore = flag; } +void makedbz(histpath, entry) char *histpath; long entry; @@ -47,7 +50,6 @@ mkhistory(srchist) char *srchist; { FILE *hismaint; - time_t lasthist, now; char maintbuff[256]; char *ptr; hismaint = fopen(srchist, "r"); @@ -89,7 +91,7 @@ time_t gethisinfo() { FILE *hismaint; - time_t lasthist, now; + time_t lasthist; char maintbuff[4096]; char *ptr; hismaint = fopen(HISTORY, "r"); @@ -177,7 +179,7 @@ HISsetup() myHISsetup(HISTORY); } -int +void myHISsetup(histpath) char *histpath; { @@ -384,6 +386,7 @@ HISslashify(p) } +void IOError(error) char *error; { @@ -391,11 +394,11 @@ IOError(error) } /* BOOL */ +int myHISwrite(key, remain) datum *key; char *remain; { - static char NOPATHS[] = ""; long offset; datum val; int i; @@ -440,7 +443,6 @@ HISwrite(key, date, paths) char *paths; long date; { - static char NOPATHS[] = ""; long offset; datum val; int i; |