Cleanup for GCC 2.

This commit is contained in:
mycroft 1993-04-19 08:00:58 +00:00
parent 0b3fc2c11f
commit 7ca0c915de
8 changed files with 13 additions and 13 deletions

View File

@ -3,7 +3,7 @@ PROG= tar
SRCS= tar.c create.c extract.c buffer.c getoldopt.c update.c gnu.c mangle.c \
version.c list.c names.c diffarch.c port.c wildmat.c getopt.c getopt1.c \
regex.c getdate.y rtape_lib.c
CFLAGS+= -DBSD42 -DSTDC_MSG -DNEED_TZSET -DNEEDPAD
CFLAGS+= -DBSD42 -DSTDC_MSG -DNEED_TZSET -DNEEDPAD -DSIGNAL_VOID
CFLAGS+= -DDEF_AR_FILE=\"/dev/rmt8\" -DDEFBLOCKING=20
NOMAN=noman

View File

@ -27,6 +27,7 @@ the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */
#include <stdio.h>
#include <errno.h>
#include <unistd.h>
#include <sys/types.h>
#include <sys/stat.h>
@ -71,6 +72,7 @@ extern int head_standard; /* Tape header is in ANSI format */
extern void print_header();
extern void skip_file();
extern void skip_extended_headers();
extern long from_oct();
extern FILE *msg_file;
@ -120,8 +122,6 @@ diff_archive()
ino_t ino;
#endif
char *get_dir_contents();
long from_oct();
long lseek();
errno = EPIPE; /* FIXME, remove perrors */

View File

@ -60,7 +60,6 @@ finduname(uname, uid)
int uid;
{
struct passwd *pw;
extern struct passwd *getpwuid ();
if (uid != saveuid) {
saveuid = uid;
@ -99,7 +98,6 @@ findgname(gname, gid)
int gid;
{
struct group *gr;
extern struct group *getgrgid ();
if (gid != savegid) {
savegid = gid;

View File

@ -28,6 +28,7 @@ the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */
* have been written on a BSD system.
*/
#include <stdio.h>
#include <stdlib.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <signal.h>
@ -739,7 +740,6 @@ ck_malloc(size)
size_t size;
{
char *ret;
char *malloc();
if(!size)
size++;
@ -755,7 +755,6 @@ char *ptr;
size_t size;
{
char *ret;
char *realloc();
if(!ptr)
ret=ck_malloc(size);

View File

@ -1205,6 +1205,7 @@ char *name;
char *rname;
char **tmp_ptr;
int size_buf;
extern char *un_quote_string();
un_quote_string(name);
size_buf = strlen(name);

View File

@ -45,6 +45,8 @@ static char sccsid[] = "@(#)unix.c 5.11 (Berkeley) 7/1/91";
#include <sys/mbuf.h>
#include <sys/un.h>
#include <sys/unpcb.h>
#include <sys/time.h>
#include <sys/proc.h>
#define KERNEL
struct uio;
#include <sys/file.h>

View File

@ -42,6 +42,7 @@ static char sccsid[] = "@(#)remcap.c 5.5 (Berkeley) 2/2/91";
*/
#include <sys/types.h>
#include <fcntl.h>
#include <stdlib.h>
#include <ctype.h>
#include "pathnames.h"
@ -78,10 +79,9 @@ char *RM;
static char *tbuf;
static int hopcount; /* detect infinite loops in termcap, init 0 */
char *tskip();
static char *tskip();
static char *tdecode();
char *tgetstr();
char *tdecode();
char *getenv();
static char *remotefile;
/*

View File

@ -38,6 +38,7 @@ static char sccsid[] = "@(#)vgrindefs.c 5.3 (Berkeley) 6/1/90";
#define BUFSIZ 1024
#define MAXHOP 32 /* max number of tc= indirections */
#include <stdlib.h>
#include <ctype.h>
/*
* grindcap - routines for dealing with the language definitions data base
@ -57,10 +58,9 @@ static char sccsid[] = "@(#)vgrindefs.c 5.3 (Berkeley) 6/1/90";
static char *tbuf;
static char *filename;
static int hopcount; /* detect infinite loops in termcap, init 0 */
char *tskip();
static char *tskip();
static char *tdecode();
char *tgetstr();
char *tdecode();
char *getenv();
/*
* Get an entry for terminal name in buffer bp,