summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--usr.bin/rdist/client.c7
-rw-r--r--usr.bin/rdist/defs.h6
-rw-r--r--usr.bin/rdist/docmd.c17
3 files changed, 3 insertions, 27 deletions
diff --git a/usr.bin/rdist/client.c b/usr.bin/rdist/client.c
index 4e0a3d0c2c2..69225dec2ca 100644
--- a/usr.bin/rdist/client.c
+++ b/usr.bin/rdist/client.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: client.c,v 1.30 2014/07/12 03:07:22 guenther Exp $ */
+/* $OpenBSD: client.c,v 1.31 2014/07/12 03:48:04 guenther Exp $ */
/*
* Copyright (c) 1983 Regents of the University of California.
@@ -1197,11 +1197,6 @@ void
cleanup(int dummy)
{
char *file;
-#ifdef USE_STATDB
- extern char statfile[];
-
- (void) unlink(statfile);
-#endif
if ((file = getnotifyfile()) != NULL)
(void) unlink(file);
diff --git a/usr.bin/rdist/defs.h b/usr.bin/rdist/defs.h
index 9ba86ec91ac..0fd21548cae 100644
--- a/usr.bin/rdist/defs.h
+++ b/usr.bin/rdist/defs.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: defs.h,v 1.30 2014/07/12 03:46:42 guenther Exp $ */
+/* $OpenBSD: defs.h,v 1.31 2014/07/12 03:48:04 guenther Exp $ */
#ifndef __DEFS_H__
#define __DEFS_H__
@@ -280,10 +280,6 @@ extern struct passwd *pw; /* pointer to static area used by getpwent */
extern char defowner[64]; /* Default owner */
extern char defgroup[64]; /* Default group */
extern volatile sig_atomic_t contimedout; /* Connection timed out */
-#ifdef USE_STATDB
-extern int dostatdb;
-extern int juststatdb;
-#endif /* USE_STATDB */
/*
* Our own declarations.
diff --git a/usr.bin/rdist/docmd.c b/usr.bin/rdist/docmd.c
index 84f68e14a56..fe41ac2a555 100644
--- a/usr.bin/rdist/docmd.c
+++ b/usr.bin/rdist/docmd.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: docmd.c,v 1.30 2014/07/12 03:02:27 guenther Exp $ */
+/* $OpenBSD: docmd.c,v 1.31 2014/07/12 03:48:04 guenther Exp $ */
/*
* Copyright (c) 1983 Regents of the University of California.
@@ -963,21 +963,6 @@ docmds(struct namelist *hostlist, int argc, char **argv)
if (!nflag)
setvbuf(stdout, NULL, _IOLBF, 0);
-#if defined(USE_STATDB)
- if (!nflag && (dostatdb || juststatdb)) {
- extern long reccount;
- message(MT_INFO, "Making stat database [%s] ... \n",
- gettimestr());
- if (mkstatdb() < 0)
- error("Warning: Make stat database failed.");
- message(MT_INFO,
- "Stat database created: %d files stored [%s].\n",
- reccount, gettimestr());
- if (juststatdb)
- return;
- }
-#endif /* USE_STATDB */
-
/*
* Print errors for any command line targets we didn't find.
* If any errors are found, return to main() which will then exit.