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/dbztool.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/dbztool.c')
-rw-r--r-- | innbbsd/dbztool.c | 15 |
1 files changed, 7 insertions, 8 deletions
diff --git a/innbbsd/dbztool.c b/innbbsd/dbztool.c index a0a35c94..34fc4046 100644 --- a/innbbsd/dbztool.c +++ b/innbbsd/dbztool.c @@ -1,13 +1,14 @@ +#include <string.h> +#include <unistd.h> #include <sys/file.h> #include "his.h" #define DEBUG 1 #undef DEBUG -static datum content, inputkey, inputvalue; +static datum content, inputkey; static char dboutput[1025]; static char dbinput[1025]; -static char valueinput[100]; enum { SUBJECT, FROM, NAME @@ -16,8 +17,7 @@ char * DBfetch(key) char *key; { - int i; - char *tail, *ptr; + char *ptr; if (key == NULL) return NULL; sprintf(dbinput, "%.510s", key); @@ -31,12 +31,11 @@ DBfetch(key) return ptr; } +int DBstore(key, paths) char *key; char *paths; { - int i; - char *tail; time_t now; time(&now); if (key == NULL) @@ -56,8 +55,7 @@ storeDB(mid, paths) char *mid; char *paths; { - char *key, *ptr; - int rel; + char *ptr; ptr = DBfetch(mid); if (ptr != NULL) { return 0; @@ -66,6 +64,7 @@ storeDB(mid, paths) } } +int my_mkdir(idir, mode) char *idir; int mode; |