aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/mdoc_hash.c
diff options
context:
space:
mode:
Diffstat (limited to 'mdoc_hash.c')
-rw-r--r--mdoc_hash.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/mdoc_hash.c b/mdoc_hash.c
index 58959dfd..0b89cd8a 100644
--- a/mdoc_hash.c
+++ b/mdoc_hash.c
@@ -1,4 +1,4 @@
-/* $Id: mdoc_hash.c,v 1.12 2010/01/01 17:14:29 kristaps Exp $ */
+/* $Id: mdoc_hash.c,v 1.13 2010/03/31 07:13:53 kristaps Exp $ */
/*
* Copyright (c) 2008, 2009 Kristaps Dzonsons <kristaps@kth.se>
*
@@ -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);