Declare variables that were extern'd in multiple places in hexdump.h.

PR:		36783
This commit is contained in:
Tim J. Robbins 2002-05-17 06:32:00 +00:00
parent 828663767a
commit 1b50831dd6
4 changed files with 3 additions and 9 deletions

View File

@ -233,7 +233,6 @@ static char **_argv;
u_char *
get()
{
extern int length;
static int ateof = 1;
static u_char *curp, *savp;
register int n;
@ -304,8 +303,6 @@ get()
}
}
extern off_t skip; /* bytes to skip */
int
next(argv)
char **argv;

View File

@ -74,7 +74,10 @@ typedef struct _fs { /* format strings */
extern FS *fshead; /* head of format strings list */
extern int blocksize; /* data block size */
extern int odmode; /* are we acting as od(1)? */
extern int length; /* amount of data to read */
extern off_t skip; /* amount of data to skip at start */
enum _vflag { ALL, DUP, FIRST, WAIT }; /* -v values */
extern enum _vflag vflag;
void add(const char *);
void addfile(char *);

View File

@ -56,9 +56,6 @@ newsyntax(argc, argvp)
int argc;
char ***argvp;
{
extern enum _vflag vflag;
extern FS *fshead;
extern int length;
int ch;
char *p, **argv;

View File

@ -59,8 +59,6 @@ oldsyntax(argc, argvp)
int argc;
char ***argvp;
{
extern enum _vflag vflag;
extern FS *fshead;
int ch;
char **argv;
@ -159,7 +157,6 @@ odoffset(argc, argvp)
int argc;
char ***argvp;
{
extern off_t skip;
unsigned char *p, *num, *end;
int base;