remove duplicate declarations, and fix nested externs.

This commit is contained in:
christos 2001-02-04 19:26:04 +00:00
parent 621611e98a
commit cba68cff4c
2 changed files with 3 additions and 7 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: c_sh.c,v 1.3 1999/10/20 15:09:59 hubertf Exp $ */
/* $NetBSD: c_sh.c,v 1.4 2001/02/04 19:26:04 christos Exp $ */
/*
* built-in Bourne commands
@ -10,6 +10,7 @@
#include "ksh_times.h"
static char *clocktos ARGS((clock_t t));
extern clock_t j_usrtime, j_systime; /* computed by j_wait */
/* :, false and true */
@ -722,7 +723,6 @@ timex(t, f)
struct tms t0, t1, tms;
clock_t t0t, t1t = 0;
int tf = 0;
extern clock_t j_usrtime, j_systime; /* computed by j_wait */
char opts[1];
t0t = ksh_times(&t0);
@ -863,9 +863,6 @@ c_builtin(wp)
return 0;
}
extern int c_test ARGS((char **wp)); /* in c_test.c */
extern int c_ulimit ARGS((char **wp)); /* in c_ulimit.c */
/* A leading = means assignments before command are kept;
* a leading * means a POSIX special builtin;
* a leading + means a POSIX regular builtin

View File

@ -1,4 +1,4 @@
/* $NetBSD: misc.c,v 1.4 1999/10/20 15:09:59 hubertf Exp $ */
/* $NetBSD: misc.c,v 1.5 2001/02/04 19:26:04 christos Exp $ */
/*
* Miscellaneous functions
@ -1312,7 +1312,6 @@ ksh_get_wd(buf, bsize)
return ret;
#else /* HAVE_GETCWD */
extern char *getwd ARGS((char *));
char *b;
int len;