Source-Changes-HG archive

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

[src/trunk]: src/usr.bin/error fix redundant and nested decls



details:   https://anonhg.NetBSD.org/src/rev/e021c57e2669
branches:  trunk
changeset: 503372:e021c57e2669
user:      christos <christos%NetBSD.org@localhost>
date:      Mon Feb 05 01:44:07 2001 +0000

description:
fix redundant and nested decls

diffstat:

 usr.bin/error/error.h  |  4 +---
 usr.bin/error/filter.c |  5 ++---
 usr.bin/error/pi.c     |  5 ++---
 usr.bin/error/touch.c  |  7 ++++---
 4 files changed, 9 insertions(+), 12 deletions(-)

diffs (112 lines):

diff -r e307f8969f6c -r e021c57e2669 usr.bin/error/error.h
--- a/usr.bin/error/error.h     Mon Feb 05 01:39:27 2001 +0000
+++ b/usr.bin/error/error.h     Mon Feb 05 01:44:07 2001 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: error.h,v 1.5 1998/10/08 01:29:27 wsanchez Exp $       */
+/*     $NetBSD: error.h,v 1.6 2001/02/05 01:44:07 christos Exp $       */
 
 /*
  * Copyright (c) 1980, 1993
@@ -67,7 +67,6 @@
 #define        INTROFF 18
 #define        INMOD2  19
 
-extern int     language;
 /*
  *     We analyze each line in the error message file, and
  *     attempt to categorize it by type, as well as language.
@@ -113,7 +112,6 @@
 extern FILE    *errorfile;     /* where error file comes from */
 extern FILE    *queryfile;     /* where the query responses from the user come from*/
 
-extern char    *currentfilename;
 extern char    *processname;
 extern char    *scriptname;
 
diff -r e307f8969f6c -r e021c57e2669 usr.bin/error/filter.c
--- a/usr.bin/error/filter.c    Mon Feb 05 01:39:27 2001 +0000
+++ b/usr.bin/error/filter.c    Mon Feb 05 01:44:07 2001 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: filter.c,v 1.6 2000/01/14 06:53:48 mjl Exp $   */
+/*     $NetBSD: filter.c,v 1.7 2001/02/05 01:44:07 christos Exp $      */
 
 /*
  * Copyright (c) 1980, 1993
@@ -38,7 +38,7 @@
 #if 0
 static char sccsid[] = "@(#)filter.c   8.1 (Berkeley) 6/6/93";
 #endif
-__RCSID("$NetBSD: filter.c,v 1.6 2000/01/14 06:53:48 mjl Exp $");
+__RCSID("$NetBSD: filter.c,v 1.7 2001/02/05 01:44:07 christos Exp $");
 #endif /* not lint */
 
 #include <sys/param.h>
@@ -58,7 +58,6 @@
        IG_FILE4,
        0
 };
-extern char*   processname;
 int    lexsort __P((const void *, const void *));
 int    search_ignore __P((char *));
 
diff -r e307f8969f6c -r e021c57e2669 usr.bin/error/pi.c
--- a/usr.bin/error/pi.c        Mon Feb 05 01:39:27 2001 +0000
+++ b/usr.bin/error/pi.c        Mon Feb 05 01:44:07 2001 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: pi.c,v 1.7 2000/01/14 06:53:48 mjl Exp $       */
+/*     $NetBSD: pi.c,v 1.8 2001/02/05 01:44:07 christos Exp $  */
 
 /*
  * Copyright (c) 1980, 1993
@@ -38,7 +38,7 @@
 #if 0
 static char sccsid[] = "@(#)pi.c       8.1 (Berkeley) 6/6/93";
 #endif
-__RCSID("$NetBSD: pi.c,v 1.7 2000/01/14 06:53:48 mjl Exp $");
+__RCSID("$NetBSD: pi.c,v 1.8 2001/02/05 01:44:07 christos Exp $");
 #endif /* not lint */
 
 #include <stdio.h>
@@ -46,7 +46,6 @@
 #include <string.h>
 #include "error.h"
 
-extern char    *currentfilename;
 static char    *c_linenumber;
 static char    *unk_hdr[] = {"In", "program", "???"};
 static char    **c_header = &unk_hdr[0];
diff -r e307f8969f6c -r e021c57e2669 usr.bin/error/touch.c
--- a/usr.bin/error/touch.c     Mon Feb 05 01:39:27 2001 +0000
+++ b/usr.bin/error/touch.c     Mon Feb 05 01:44:07 2001 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: touch.c,v 1.10 2000/10/11 14:46:02 is Exp $    */
+/*     $NetBSD: touch.c,v 1.11 2001/02/05 01:44:07 christos Exp $      */
 
 /*
  * Copyright (c) 1980, 1993
@@ -38,7 +38,7 @@
 #if 0
 static char sccsid[] = "@(#)touch.c    8.1 (Berkeley) 6/6/93";
 #endif
-__RCSID("$NetBSD: touch.c,v 1.10 2000/10/11 14:46:02 is Exp $");
+__RCSID("$NetBSD: touch.c,v 1.11 2001/02/05 01:44:07 christos Exp $");
 #endif /* not lint */
 
 #include <sys/param.h>
@@ -66,6 +66,8 @@
 #define        FILEITERATE(fi, lb)     for (fi = lb; fi <= nfiles; fi++)
 int    touchstatus = Q_YES;
 
+extern char    *suffixlist;
+
 void
 findfiles(nerrors, errors, r_nfiles, r_files)
        int     nerrors;
@@ -453,7 +455,6 @@
 oktotouch(filename)
        char    *filename;
 {
-       extern  char    *suffixlist;
        char    *src;
        char    *pat;
        char    *osrc;



Home | Main Index | Thread Index | Old Index