-/* $Id: validate.c,v 1.69 2009/03/06 14:13:47 kristaps Exp $ */
+/* $Id: validate.c,v 1.70 2009/03/06 14:24:49 kristaps Exp $ */
/*
* Copyright (c) 2008 Kristaps Dzonsons <kristaps@kth.se>
*
va_start(ap, n);
for (;;) {
- if (SEC_CUSTOM == (sec = va_arg(ap, enum mdoc_sed)))
+ sec = (enum mdoc_sec)va_arg(ap, int);
+ if (SEC_CUSTOM == sec)
break;
if (sec != mdoc->lastsec)
continue;