diff options
author | dwmalone <dwmalone@FreeBSD.org> | 2002-03-30 17:10:20 +0000 |
---|---|---|
committer | dwmalone <dwmalone@FreeBSD.org> | 2002-03-30 17:10:20 +0000 |
commit | 99e772806a36ae098c6182c10930a22d0e294773 (patch) | |
tree | 1711f44fbf118a1272386226ffd60f4cc94cc20c /usr.bin/indent/indent.h | |
parent | 02ab2c827dc5bab7d906f77bfdbb34f353f214aa (diff) | |
download | FreeBSD-src-99e772806a36ae098c6182c10930a22d0e294773.zip FreeBSD-src-99e772806a36ae098c6182c10930a22d0e294773.tar.gz |
1) Const enough things to avoid warnings.
2) Cast ifdef_level to a size_t before comparing it to a ratio of size_ts.
Ifdef_level should always be positive.
3) Complete prototype for chfont.
4) Cast some ptrdiff_ts to ints before using as a field width.
5) Avoid shadowing a local variable p with another local variable p.
Diffstat (limited to 'usr.bin/indent/indent.h')
-rw-r--r-- | usr.bin/indent/indent.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/usr.bin/indent/indent.h b/usr.bin/indent/indent.h index cd64498..4c52bf8 100644 --- a/usr.bin/indent/indent.h +++ b/usr.bin/indent/indent.h @@ -33,13 +33,13 @@ int compute_code_target(void); int compute_label_target(void); int count_spaces(int, char *); int lexi(void); -void diag2(int, char *); -void diag3(int, char *, int); -void diag4(int, char *, int, int); +void diag2(int, const char *); +void diag3(int, const char *, int); +void diag4(int, const char *, int, int); void dump_line(void); void fill_buffer(void); void parse(int); -void parsefont(struct fstate *, char *); +void parsefont(struct fstate *, const char *); void pr_comment(void); void set_defaults(void); void set_option(char *); |