From e31bf402f920e5636076f847f47615ca0117ca73 Mon Sep 17 00:00:00 2001 From: dwmalone Date: Sun, 13 Nov 2005 20:37:25 +0000 Subject: Declare find_err in indent_globs.h where the other shared variables live rather than listing it as an extern in indent.c. --- usr.bin/indent/indent.c | 2 -- usr.bin/indent/indent_globs.h | 1 + usr.bin/indent/io.c | 2 -- 3 files changed, 1 insertion(+), 4 deletions(-) (limited to 'usr.bin/indent') diff --git a/usr.bin/indent/indent.c b/usr.bin/indent/indent.c index f91043f..bd654a8 100644 --- a/usr.bin/indent/indent.c +++ b/usr.bin/indent/indent.c @@ -70,8 +70,6 @@ const char *out_name = "Standard Output"; /* will always point to name * of output file */ char bakfile[MAXPATHLEN] = ""; -extern int found_err; /* flag set in diagN() on error */ - int main(int argc, char **argv) { diff --git a/usr.bin/indent/indent_globs.h b/usr.bin/indent/indent_globs.h index 010b3a3..11ea239 100644 --- a/usr.bin/indent/indent_globs.h +++ b/usr.bin/indent/indent_globs.h @@ -131,6 +131,7 @@ char *bp_save; /* saved value of buf_ptr when taking input char *be_save; /* similarly saved value of buf_end */ +int found_err; int pointer_as_binop; int blanklines_after_declarations; int blanklines_before_blockcomments; diff --git a/usr.bin/indent/io.c b/usr.bin/indent/io.c index 45eb6c2..1e36582 100644 --- a/usr.bin/indent/io.c +++ b/usr.bin/indent/io.c @@ -540,8 +540,6 @@ count_spaces(int current, char *buffer) return (cur); } -int found_err; - void diag4(int level, const char *msg, int a, int b) { -- cgit v1.1