summaryrefslogtreecommitdiff
path: root/usr/src
diff options
context:
space:
mode:
Diffstat (limited to 'usr/src')
-rw-r--r--usr/src/cmd/sgs/error/common/error.h10
-rw-r--r--usr/src/cmd/sgs/error/common/errorfilter.c2
-rw-r--r--usr/src/cmd/sgs/error/common/errorinput.c3
-rw-r--r--usr/src/cmd/sgs/error/common/errormain.c8
-rw-r--r--usr/src/cmd/sgs/error/common/errortouch.c1
5 files changed, 12 insertions, 12 deletions
diff --git a/usr/src/cmd/sgs/error/common/error.h b/usr/src/cmd/sgs/error/common/error.h
index e013635b8f..9a19af13f5 100644
--- a/usr/src/cmd/sgs/error/common/error.h
+++ b/usr/src/cmd/sgs/error/common/error.h
@@ -110,8 +110,8 @@ extern int class_count[];
#define TOTHEFILE 1 /* touch the file */
#define TOSTDOUT 2 /* just print them out (ho-hum) */
-FILE *errorfile; /* where error file comes from */
-FILE *queryfile; /* where the query responses from the user come from */
+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;
@@ -172,8 +172,8 @@ extern struct lang_desc lang_table[];
#define IG_FILE2 "/usr/lib/llib-port"
#define ERRORNAME "/.errorrc"
-int nignored;
-char **names_ignored;
+extern int nignored;
+extern char **names_ignored;
/*
* Structure definition for a full error
*/
@@ -202,7 +202,7 @@ extern Eptr *errors;
*/
extern int nfiles;
extern Eptr **files; /* array of pointers into errors */
-boolean *touchedfiles; /* which files we touched */
+extern boolean *touchedfiles; /* which files we touched */
/*
* The langauge the compilation is in, as intuited from
* the flavor of error messages analyzed.
diff --git a/usr/src/cmd/sgs/error/common/errorfilter.c b/usr/src/cmd/sgs/error/common/errorfilter.c
index cdef60f8ff..52b0ec1da5 100644
--- a/usr/src/cmd/sgs/error/common/errorfilter.c
+++ b/usr/src/cmd/sgs/error/common/errorfilter.c
@@ -38,6 +38,8 @@ char *lint_libs[] = {
IG_FILE2,
0
};
+char **names_ignored;
+int nignored;
extern char *processname;
diff --git a/usr/src/cmd/sgs/error/common/errorinput.c b/usr/src/cmd/sgs/error/common/errorinput.c
index 1f02ab6923..b5a2341ffc 100644
--- a/usr/src/cmd/sgs/error/common/errorinput.c
+++ b/usr/src/cmd/sgs/error/common/errorinput.c
@@ -34,9 +34,6 @@
int wordc; /* how long the current error message is */
char **wordv; /* the actual error message */
-int nerrors;
-int language;
-
Errorclass onelong(void);
Errorclass cpp(void);
Errorclass pccccom(void); /* Portable C Compiler C Compiler */
diff --git a/usr/src/cmd/sgs/error/common/errormain.c b/usr/src/cmd/sgs/error/common/errormain.c
index 026f4b7ce1..5b80c3c537 100644
--- a/usr/src/cmd/sgs/error/common/errormain.c
+++ b/usr/src/cmd/sgs/error/common/errormain.c
@@ -25,8 +25,6 @@
* Use is subject to license terms.
*/
-#pragma ident "%Z%%M% %I% %E% SMI"
-
#include <stdio.h>
#include <ctype.h>
#include <signal.h>
@@ -35,6 +33,8 @@
#include <string.h>
#include "error.h"
+FILE *errorfile;
+FILE *queryfile;
int nerrors = 0;
Eptr er_head;
Eptr *errors;
@@ -181,8 +181,8 @@ main(int argc, char *argv[])
if ((queryfile = fopen(im_on, "r")) == NULL) {
if (query) {
(void) fprintf(stderr,
- "%s: Can't open \"%s\" to query the user.\n",
- processname, im_on);
+ "%s: Can't open \"%s\" to query the user.\n",
+ processname, im_on);
exit(9);
}
}
diff --git a/usr/src/cmd/sgs/error/common/errortouch.c b/usr/src/cmd/sgs/error/common/errortouch.c
index fcc3ce9499..132f703b05 100644
--- a/usr/src/cmd/sgs/error/common/errortouch.c
+++ b/usr/src/cmd/sgs/error/common/errortouch.c
@@ -62,6 +62,7 @@ static void writetouched(int overwrite);
#define FILEITERATE(fi, lb) for (fi = lb; fi <= nfiles; fi++)
int touchstatus = Q_YES;
+boolean *touchedfiles;
void
findfiles(int nerrors, Eptr *errors, int *r_nfiles, Eptr ***r_files)