diff options
author | dwmalone <dwmalone@FreeBSD.org> | 2005-11-13 20:37:25 +0000 |
---|---|---|
committer | dwmalone <dwmalone@FreeBSD.org> | 2005-11-13 20:37:25 +0000 |
commit | e31bf402f920e5636076f847f47615ca0117ca73 (patch) | |
tree | 628899b9cfa152a377accd43e821fd03950f78fa /usr.bin/indent | |
parent | 7a146f5f800494ae683092ef856903568540b6bf (diff) | |
download | FreeBSD-src-e31bf402f920e5636076f847f47615ca0117ca73.zip FreeBSD-src-e31bf402f920e5636076f847f47615ca0117ca73.tar.gz |
Declare find_err in indent_globs.h where the other shared variables
live rather than listing it as an extern in indent.c.
Diffstat (limited to 'usr.bin/indent')
-rw-r--r-- | usr.bin/indent/indent.c | 2 | ||||
-rw-r--r-- | usr.bin/indent/indent_globs.h | 1 | ||||
-rw-r--r-- | usr.bin/indent/io.c | 2 |
3 files changed, 1 insertions, 4 deletions
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) { |