diff options
author | Kristaps Dzonsons <kristaps@bsd.lv> | 2010-05-08 07:30:19 +0000 |
---|---|---|
committer | Kristaps Dzonsons <kristaps@bsd.lv> | 2010-05-08 07:30:19 +0000 |
commit | c10df4f63596660b1a585dd712a0778b88ec5874 (patch) | |
tree | f77bfbb9e507408371b66a87df9e677a040288a1 /mdoc_action.c | |
parent | 0f679b197ab273ae0779713155a8a455d4a770fe (diff) | |
download | mandoc-c10df4f63596660b1a585dd712a0778b88ec5874.tar.gz |
Lint fixes (type-safety for enums via -cefuh).
Diffstat (limited to 'mdoc_action.c')
-rw-r--r-- | mdoc_action.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/mdoc_action.c b/mdoc_action.c index c2985f85..63e25cd8 100644 --- a/mdoc_action.c +++ b/mdoc_action.c @@ -44,7 +44,7 @@ struct actions { static int concat(struct mdoc *, char *, const struct mdoc_node *, size_t); -static inline int order_rs(int); +static inline int order_rs(enum mdoct); static int post_ar(POST_ARGS); static int post_at(POST_ARGS); @@ -196,7 +196,7 @@ static const struct actions mdoc_actions[MDOC_MAX] = { #define RSORD_MAX 14 -static const int rsord[RSORD_MAX] = { +static const enum mdoct rsord[RSORD_MAX] = { MDOC__A, MDOC__T, MDOC__B, @@ -945,11 +945,11 @@ post_display(POST_ARGS) static inline int -order_rs(int t) +order_rs(enum mdoct t) { int i; - for (i = 0; i < RSORD_MAX; i++) + for (i = 0; i < (int)RSORD_MAX; i++) if (rsord[i] == t) return(i); |