summaryrefslogtreecommitdiffstats
path: root/mdoc_hash.c
diff options
context:
space:
mode:
Diffstat (limited to 'mdoc_hash.c')
-rw-r--r--mdoc_hash.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/mdoc_hash.c b/mdoc_hash.c
index 871000fc..ce9e3ce3 100644
--- a/mdoc_hash.c
+++ b/mdoc_hash.c
@@ -61,7 +61,7 @@ mdoc_hash_init(void)
}
}
-int
+enum mdoct
mdoc_hash_find(const char *p)
{
int major, i, j;
@@ -85,7 +85,7 @@ mdoc_hash_find(const char *p)
if (UCHAR_MAX == (i = table[major + j]))
break;
if (0 == strcmp(p, mdoc_macronames[i]))
- return(i);
+ return((enum mdoct)i);
}
return(MDOC_MAX);