=================================================================== RCS file: /cvs/mandoc/mandocdb.c,v retrieving revision 1.23 retrieving revision 1.24 diff -u -p -r1.23 -r1.24 --- mandoc/mandocdb.c 2011/12/03 18:47:09 1.23 +++ mandoc/mandocdb.c 2011/12/04 14:23:29 1.24 @@ -1,4 +1,4 @@ -/* $Id: mandocdb.c,v 1.23 2011/12/03 18:47:09 kristaps Exp $ */ +/* $Id: mandocdb.c,v 1.24 2011/12/04 14:23:29 schwarze Exp $ */ /* * Copyright (c) 2011 Kristaps Dzonsons * Copyright (c) 2011 Ingo Schwarze @@ -1417,13 +1417,12 @@ ofile_argbuild(int argc, char *argv[], struct of **of) *p = '\0'; continue; } - if (strncmp("man", p + 1, 3)) { + if (0 == strncmp("man", p + 1, 3)) src_form |= MANDOC_SRC; - arch = p + 1; - } else if (strncmp("cat", p + 1, 3)) { + else if (0 == strncmp("cat", p + 1, 3)) src_form |= MANDOC_FORM; + else arch = p + 1; - } break; } if (NULL == title)