summaryrefslogtreecommitdiffstats
path: root/innbbsd/dbztool.c
diff options
context:
space:
mode:
Diffstat (limited to 'innbbsd/dbztool.c')
-rw-r--r--innbbsd/dbztool.c41
1 files changed, 2 insertions, 39 deletions
diff --git a/innbbsd/dbztool.c b/innbbsd/dbztool.c
index c519853a..74291494 100644
--- a/innbbsd/dbztool.c
+++ b/innbbsd/dbztool.c
@@ -1,24 +1,14 @@
-#include "bbs.h"
+#include <stdio.h>
#include <string.h>
#include <unistd.h>
#include <sys/file.h>
-#include "his.h"
-#include "externs.h"
#include <time.h>
-
-#define DEBUG 1
-#undef DEBUG
+#include "his.h"
static datum content, inputkey;
static char dboutput[1025];
static char dbinput[1025];
-#if 0
-enum {
- SUBJECT, FROM, NAME
-};
-#endif
-
char *
DBfetch(key)
char *key;
@@ -69,30 +59,3 @@ storeDB(mid, paths)
return DBstore(mid, paths);
}
}
-
-int
-my_mkdir(idir, mode)
- char *idir;
- int mode;
-{
- char buffer[LEN];
- char *ptr, *dir = buffer;
- struct stat st;
- strncpy(dir, idir, LEN - 1);
- for (; dir != NULL && *dir;) {
- ptr = (char *)strchr(dir, '/');
- if (ptr != NULL) {
- *ptr = '\0';
- }
- if (stat(dir, &st) != 0) {
- if (mkdir(dir, mode) != 0)
- return -1;
- }
- chdir(dir);
- if (ptr != NULL)
- dir = ptr + 1;
- else
- dir = ptr;
- }
- return 0;
-}