=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/mandoc/Attic/man_hash.c,v retrieving revision 1.20 retrieving revision 1.21 diff -c -r1.20 -r1.21 *** src/usr.bin/mandoc/Attic/man_hash.c 2015/04/02 21:03:18 1.20 --- src/usr.bin/mandoc/Attic/man_hash.c 2015/04/02 22:06:17 1.21 *************** *** 1,4 **** ! /* $OpenBSD: man_hash.c,v 1.20 2015/04/02 21:03:18 schwarze Exp $ */ /* * Copyright (c) 2008, 2009, 2010 Kristaps Dzonsons * --- 1,4 ---- ! /* $OpenBSD: man_hash.c,v 1.21 2015/04/02 22:06:17 schwarze Exp $ */ /* * Copyright (c) 2008, 2009, 2010 Kristaps Dzonsons * *************** *** 75,85 **** } } ! enum mant man_hash_find(const char *tmp) { int x, y, i; ! enum mant tok; if ('\0' == (x = tmp[0])) return(MAN_MAX); --- 75,85 ---- } } ! int man_hash_find(const char *tmp) { int x, y, i; ! int tok; if ('\0' == (x = tmp[0])) return(MAN_MAX); *************** *** 92,98 **** if (UCHAR_MAX == (y = table[x + i])) return(MAN_MAX); ! tok = (enum mant)y; if (0 == strcmp(tmp, man_macronames[tok])) return(tok); } --- 92,98 ---- if (UCHAR_MAX == (y = table[x + i])) return(MAN_MAX); ! tok = y; if (0 == strcmp(tmp, man_macronames[tok])) return(tok); }