Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sbin/dump fix redundant decls



details:   https://anonhg.NetBSD.org/src/rev/6a8ddcd37414
branches:  trunk
changeset: 503327:6a8ddcd37414
user:      christos <christos%NetBSD.org@localhost>
date:      Sun Feb 04 21:33:19 2001 +0000

description:
fix redundant decls

diffstat:

 sbin/dump/dump.h    |  21 ++++++++++++---------
 sbin/dump/dumprmt.c |   8 ++------
 2 files changed, 14 insertions(+), 15 deletions(-)

diffs (85 lines):

diff -r b9533bd1fd43 -r 6a8ddcd37414 sbin/dump/dump.h
--- a/sbin/dump/dump.h  Sun Feb 04 21:25:54 2001 +0000
+++ b/sbin/dump/dump.h  Sun Feb 04 21:33:19 2001 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: dump.h,v 1.21 2000/12/13 22:44:44 scw Exp $    */
+/*     $NetBSD: dump.h,v 1.22 2001/02/04 21:33:19 christos Exp $       */
 
 /*-
  * Copyright (c) 1980, 1993
@@ -102,16 +102,17 @@
 int    pipeout;        /* true => output to standard output */
 ino_t  curino;         /* current inumber; used globally */
 int    newtape;        /* new tape flag */
-int    density;        /* density in 0.1" units */
 long   tapesize;       /* estimated tape size, blocks */
 long   tsize;          /* tape size in 0.1" units */
 long   asize;          /* number of 0.1" units written on current tape */
 int    etapes;         /* estimated number of tapes */
 int    nonodump;       /* if set, do not honor UF_NODUMP user flags */
 
-int    notify;         /* notify operator flag */
-int    blockswritten;  /* number of blocks written on current tape */
-int    tapeno;         /* current tape number */
+extern int     density;        /* density in 0.1" units */
+extern int     notify;         /* notify operator flag */
+extern int     blockswritten;  /* number of blocks written on current tape */
+extern int     tapeno;         /* current tape number */
+
 time_t tstart_writing; /* when started writing the first tape block */
 int    xferrate;       /* averaged transfer rate of all volumes */
 char   sblock_buf[MAXBSIZE]; /* buffer to hold the superblock */
@@ -244,10 +245,12 @@
        struct  dumpdates dt_value;
        struct  dumptime *dt_next;
 };
-struct dumptime *dthead;       /* head of the list version */
-int    nddates;                /* number of records (might be zero) */
-int    ddates_in;              /* we have read the increment file */
-struct dumpdates **ddatev;     /* the arrayfied version */
+
+extern struct  dumptime *dthead;       /* head of the list version */
+extern int     nddates;                /* number of records (might be zero) */
+extern int     ddates_in;              /* we have read the increment file */
+extern struct  dumpdates **ddatev;     /* the arrayfied version */
+
 void   initdumptimes __P((void));
 void   getdumptime __P((void));
 void   putdumptime __P((void));
diff -r b9533bd1fd43 -r 6a8ddcd37414 sbin/dump/dumprmt.c
--- a/sbin/dump/dumprmt.c       Sun Feb 04 21:25:54 2001 +0000
+++ b/sbin/dump/dumprmt.c       Sun Feb 04 21:33:19 2001 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: dumprmt.c,v 1.21 1998/07/30 18:14:00 thorpej Exp $     */
+/*     $NetBSD: dumprmt.c,v 1.22 2001/02/04 21:33:19 christos Exp $    */
 
 /*-
  * Copyright (c) 1980, 1993
@@ -38,7 +38,7 @@
 #if 0
 static char sccsid[] = "@(#)dumprmt.c  8.3 (Berkeley) 4/28/95";
 #else
-__RCSID("$NetBSD: dumprmt.c,v 1.21 1998/07/30 18:14:00 thorpej Exp $");
+__RCSID("$NetBSD: dumprmt.c,v 1.22 2001/02/04 21:33:19 christos Exp $");
 #endif
 #endif /* not lint */
 
@@ -87,18 +87,14 @@
 
 static int     okname __P((char *));
 static int     rmtcall __P((char *, char *));
-       void    rmtclose __P((void));
 static void    rmtconnaborted __P((int));
 static int     rmtgetb __P((void));
 static void    rmtgetconn __P((void));
 static void    rmtgets __P((char *, int));
-       int     rmthost __P((char *));
        int     rmtioctl __P((int, int));
-       int     rmtopen __P((char *, int));
        int     rmtread __P((char *, int));
 static int     rmtreply __P((char *));
        int     rmtseek __P((int, int));
-       int     rmtwrite __P((char *, int));
 
 extern int ntrec;              /* blocking factor on tape */
 



Home | Main Index | Thread Index | Old Index