Declare variables that were extern'd in multiple places in hexdump.h.
PR: 36783
This commit is contained in:
parent
828663767a
commit
1b50831dd6
@ -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;
|
||||
|
@ -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 *);
|
||||
|
@ -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;
|
||||
|
||||
|
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user