aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/mdoc_action.c
diff options
context:
space:
mode:
authorKristaps Dzonsons <kristaps@bsd.lv>2010-05-08 07:30:19 +0000
committerKristaps Dzonsons <kristaps@bsd.lv>2010-05-08 07:30:19 +0000
commit29086c29fdd989b9c086bf25e0790ba21243c4ff (patch)
tree50a8ad3ca3079d5cf210d324169efe8e8f96b62d /mdoc_action.c
parent98c1a46e2586de979ce0fc696b15d91fb80166c5 (diff)
downloadmandoc-29086c29fdd989b9c086bf25e0790ba21243c4ff.tar.gz
mandoc-29086c29fdd989b9c086bf25e0790ba21243c4ff.tar.zst
mandoc-29086c29fdd989b9c086bf25e0790ba21243c4ff.zip
Lint fixes (type-safety for enums via -cefuh).
Diffstat (limited to 'mdoc_action.c')
-rw-r--r--mdoc_action.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/mdoc_action.c b/mdoc_action.c
index 1d0245c7..b9b95f99 100644
--- a/mdoc_action.c
+++ b/mdoc_action.c
@@ -1,4 +1,4 @@
-/* $Id: mdoc_action.c,v 1.53 2010/04/06 11:33:00 kristaps Exp $ */
+/* $Id: mdoc_action.c,v 1.54 2010/05/08 07:30:19 kristaps Exp $ */
/*
* Copyright (c) 2008, 2009 Kristaps Dzonsons <kristaps@kth.se>
*
@@ -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);