diff options
Diffstat (limited to 'bin')
-rw-r--r-- | bin/date/extern.h | 2 | ||||
-rw-r--r-- | bin/date/netdate.c | 2 | ||||
-rw-r--r-- | bin/ed/buf.c | 3 | ||||
-rw-r--r-- | bin/ed/ed.h | 6 | ||||
-rw-r--r-- | bin/ed/io.c | 9 | ||||
-rw-r--r-- | bin/ed/re.c | 3 |
6 files changed, 8 insertions, 17 deletions
diff --git a/bin/date/extern.h b/bin/date/extern.h index 76b8d5e..91aeab2 100644 --- a/bin/date/extern.h +++ b/bin/date/extern.h @@ -30,4 +30,6 @@ * $FreeBSD$ */ +extern int retval; + int netsettime(time_t); diff --git a/bin/date/netdate.c b/bin/date/netdate.c index b844106..b085be4 100644 --- a/bin/date/netdate.c +++ b/bin/date/netdate.c @@ -55,8 +55,6 @@ __FBSDID("$FreeBSD$"); #define WAITACK 2 /* seconds */ #define WAITDATEACK 5 /* seconds */ -extern int retval; - /* * Set the date in the machines controlled by timedaemons by communicating the * new date to the local timedaemon. If the timedaemon is in the master state, diff --git a/bin/ed/buf.c b/bin/ed/buf.c index 2f3559a..6d8a6ed 100644 --- a/bin/ed/buf.c +++ b/bin/ed/buf.c @@ -185,9 +185,6 @@ get_addressed_line_node(long n) return lp; } - -extern int newline_added; - static char sfn[15] = ""; /* scratch file name */ /* open_sbuf: open scratch file */ diff --git a/bin/ed/ed.h b/bin/ed/ed.h index 2021232..8cb8cec 100644 --- a/bin/ed/ed.h +++ b/bin/ed/ed.h @@ -277,3 +277,9 @@ extern int lineno; extern long second_addr; extern long u_addr_last; extern long u_current_addr; +extern long rows; +extern int cols; +extern int newline_added; +extern int des; +extern int scripted; +extern int patlock; diff --git a/bin/ed/io.c b/bin/ed/io.c index 29c5612..cf2e959 100644 --- a/bin/ed/io.c +++ b/bin/ed/io.c @@ -30,9 +30,6 @@ __FBSDID("$FreeBSD$"); #include "ed.h" - -extern int scripted; - /* read_file: read a named file/pipe into the buffer; return line count */ long read_file(char *fn, long n) @@ -58,9 +55,6 @@ read_file(char *fn, long n) return current_addr - n; } - -extern int des; - static char *sbuf; /* file i/o buffer */ static int sbufsz; /* file i/o buffer size */ int newline_added; /* if set, newline appended to input file */ @@ -298,9 +292,6 @@ get_tty_line(void) #define ESCAPES "\a\b\f\n\r\t\v\\" #define ESCCHARS "abfnrtv\\" -extern int rows; -extern int cols; - /* put_tty_line: print text to stdout */ int put_tty_line(const char *s, int l, long n, int gflag) diff --git a/bin/ed/re.c b/bin/ed/re.c index f89ecf9..08a330d 100644 --- a/bin/ed/re.c +++ b/bin/ed/re.c @@ -31,9 +31,6 @@ __FBSDID("$FreeBSD$"); #include "ed.h" - -extern int patlock; - const char *errmsg = ""; /* get_compiled_pattern: return pointer to compiled pattern from command |