Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/bin/ksh remove duplicate declarations, and fix nested externs.
details: https://anonhg.NetBSD.org/src/rev/8964ef7ece53
branches: trunk
changeset: 503301:8964ef7ece53
user: christos <christos%NetBSD.org@localhost>
date: Sun Feb 04 19:26:04 2001 +0000
description:
remove duplicate declarations, and fix nested externs.
diffstat:
bin/ksh/c_sh.c | 7 ++-----
bin/ksh/misc.c | 3 +--
2 files changed, 3 insertions(+), 7 deletions(-)
diffs (52 lines):
diff -r dcd74989aa30 -r 8964ef7ece53 bin/ksh/c_sh.c
--- a/bin/ksh/c_sh.c Sun Feb 04 19:25:43 2001 +0000
+++ b/bin/ksh/c_sh.c Sun Feb 04 19:26:04 2001 +0000
@@ -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 @@
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 @@
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
diff -r dcd74989aa30 -r 8964ef7ece53 bin/ksh/misc.c
--- a/bin/ksh/misc.c Sun Feb 04 19:25:43 2001 +0000
+++ b/bin/ksh/misc.c Sun Feb 04 19:26:04 2001 +0000
@@ -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 @@
return ret;
#else /* HAVE_GETCWD */
- extern char *getwd ARGS((char *));
char *b;
int len;
Home |
Main Index |
Thread Index |
Old Index