diff options
author | Ingo Schwarze <schwarze@cvs.openbsd.org> | 2010-05-14 01:54:38 +0000 |
---|---|---|
committer | Ingo Schwarze <schwarze@cvs.openbsd.org> | 2010-05-14 01:54:38 +0000 |
commit | 42b6606b4eb4bb1febdeb1a090f94bd2141fe5d5 (patch) | |
tree | 7a4e464e0856eb74c6001784194acb407c54dab2 /usr.bin/mandoc/man_hash.c | |
parent | bc9636292b520c29ccc25c4e46b001cbe0b94be2 (diff) |
merge 1.9.24, keeping local patches; some changes:
* preserve multiple consecutive space characters in input
* do not restrict .Cd and .Rv to certain sections (requested by Joerg)
* do not run lookup() on quoted words
* enum return types for mdoc_args and mdoc_argv
* fix auto-closing of LINK tag in -Txhtml (from Daniel Friesel)
* various lint and manual fixes
Diffstat (limited to 'usr.bin/mandoc/man_hash.c')
-rw-r--r-- | usr.bin/mandoc/man_hash.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/usr.bin/mandoc/man_hash.c b/usr.bin/mandoc/man_hash.c index 81610efe8c9..18daea0786c 100644 --- a/usr.bin/mandoc/man_hash.c +++ b/usr.bin/mandoc/man_hash.c @@ -1,4 +1,4 @@ -/* $Id: man_hash.c,v 1.9 2010/04/25 16:32:19 schwarze Exp $ */ +/* $Id: man_hash.c,v 1.10 2010/05/14 01:54:37 schwarze Exp $ */ /* * Copyright (c) 2008, 2009 Kristaps Dzonsons <kristaps@kth.se> * @@ -56,9 +56,10 @@ man_hash_init(void) memset(table, UCHAR_MAX, sizeof(table)); - assert(/* CONSTCOND */ MAN_MAX < UCHAR_MAX); + assert(/* LINTED */ + MAN_MAX < UCHAR_MAX); - for (i = 0; i < MAN_MAX; i++) { + for (i = 0; i < (int)MAN_MAX; i++) { x = man_macronames[i][0]; assert(isalpha((u_char)x) || '.' == x); |