]> git.cameronkatri.com Git - mandoc.git/blobdiff - msec.c
during prioritization for man(1), correctly extract the section name
[mandoc.git] / msec.c
diff --git a/msec.c b/msec.c
index ba5e8d78396b727fac44b0e66af73d76cb9d120b..9a52213d95e6586789fa658469a320da6fe1e41c 100644 (file)
--- a/msec.c
+++ b/msec.c
@@ -1,4 +1,4 @@
-/*     $Id: msec.c,v 1.8 2010/05/17 22:11:42 kristaps Exp $ */
+/*     $Id: msec.c,v 1.16 2018/12/14 01:18:26 schwarze Exp $ */
 /*
  * Copyright (c) 2009 Kristaps Dzonsons <kristaps@bsd.lv>
  *
  * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
  * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
  */
-#ifdef HAVE_CONFIG_H
 #include "config.h"
-#endif
 
-#include <stdlib.h>
+#include <sys/types.h>
+
+#include <stdio.h>
 #include <string.h>
 
 #include "mandoc.h"
-#include "libmdoc.h"
+#include "libmandoc.h"
 
 #define LINE(x, y) \
        if (0 == strcmp(p, x)) return(y);
 
 const char *
-mdoc_a2msec(const char *p)
+mandoc_a2msec(const char *p)
 {
 
 #include "msec.in"
 
-       return(NULL);
+       return NULL;
 }