Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/libexec/getty remove redundant decls



details:   https://anonhg.NetBSD.org/src/rev/5074c59535f4
branches:  trunk
changeset: 503338:5074c59535f4
user:      christos <christos%NetBSD.org@localhost>
date:      Sun Feb 04 22:09:01 2001 +0000

description:
remove redundant decls
fix nested extern

diffstat:

 libexec/getty/gettytab.h |  7 +------
 libexec/getty/main.c     |  8 ++++----
 2 files changed, 5 insertions(+), 10 deletions(-)

diffs (65 lines):

diff -r d806e4297b0f -r 5074c59535f4 libexec/getty/gettytab.h
--- a/libexec/getty/gettytab.h  Sun Feb 04 22:05:13 2001 +0000
+++ b/libexec/getty/gettytab.h  Sun Feb 04 22:09:01 2001 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: gettytab.h,v 1.11 2000/12/28 22:18:27 sommerfeld Exp $ */
+/*     $NetBSD: gettytab.h,v 1.12 2001/02/04 22:09:01 christos Exp $   */
 
 /*
  * Copyright (c) 1983, 1993, 1994
@@ -169,11 +169,6 @@
 #define        MB      gettyflags[22].value
 #define        CS      gettyflags[23].value
 
-int    getent __P((char *, char *));
-long   getnum __P((char *));
-int    getflag __P((char *));
-char   *getstr __P((char *, char **));
-
 extern struct gettyflags gettyflags[];
 extern struct gettynums gettynums[];
 extern struct gettystrs gettystrs[];
diff -r d806e4297b0f -r 5074c59535f4 libexec/getty/main.c
--- a/libexec/getty/main.c      Sun Feb 04 22:05:13 2001 +0000
+++ b/libexec/getty/main.c      Sun Feb 04 22:09:01 2001 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: main.c,v 1.36 2001/01/10 00:36:44 lukem Exp $  */
+/*     $NetBSD: main.c,v 1.37 2001/02/04 22:09:01 christos Exp $       */
 
 /*-
  * Copyright (c) 1980, 1993
@@ -44,7 +44,7 @@
 #if 0
 static char sccsid[] = "from: @(#)main.c       8.1 (Berkeley) 6/20/93";
 #else
-__RCSID("$NetBSD: main.c,v 1.36 2001/01/10 00:36:44 lukem Exp $");
+__RCSID("$NetBSD: main.c,v 1.37 2001/02/04 22:09:01 christos Exp $");
 #endif
 #endif /* not lint */
 
@@ -77,7 +77,9 @@
 #include "pathnames.h"
 #include "extern.h"
 
+extern char **environ;
 extern char *__progname;
+extern char editedhost[];
 
 /*
  * Set the amount of running time that getty should accumulate
@@ -193,7 +195,6 @@
        int argc;
        char *argv[];
 {
-       extern char **environ;
        char *tname;
        int repcnt = 0, failopenlogged = 0, uugetty = 0, first_time = 1;
        struct rlimit limit;
@@ -644,7 +645,6 @@
 putf(cp)
        const char *cp;
 {
-       extern char editedhost[];
        time_t t;
        char *slash, db[100];
 



Home | Main Index | Thread Index | Old Index