diff options
author | David Malone <dwmalone@FreeBSD.org> | 2005-11-13 20:37:25 +0000 |
---|---|---|
committer | David Malone <dwmalone@FreeBSD.org> | 2005-11-13 20:37:25 +0000 |
commit | 84032c0a6da24d898b6ab627b091bf1af156b855 (patch) | |
tree | 628899b9cfa152a377accd43e821fd03950f78fa /usr.bin/indent | |
parent | 707083753a784c0295e0930d6e1b433f22ab5360 (diff) | |
download | src-84032c0a6da24d898b6ab627b091bf1af156b855.tar.gz src-84032c0a6da24d898b6ab627b091bf1af156b855.zip |
Declare find_err in indent_globs.h where the other shared variables
live rather than listing it as an extern in indent.c.
Notes
Notes:
svn path=/head/; revision=152395
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 f91043f7d3b1..bd654a895d17 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 010b3a3d6794..11ea239571b0 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 45eb6c2d5f3b..1e36582d5bf8 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) { |