From 9398f94c066d1f13474d89532f4f5afc373f7304 Mon Sep 17 00:00:00 2001 From: schwarze Date: Fri, 15 Jul 2016 18:02:32 +0000 Subject: [PATCH] add missing prototypes, no code change; noticed by Christos Zoulas with -Wmissing-prototypes --- usr.bin/mandoc/main.c | 5 ++++- usr.bin/mandoc/man_hash.c | 4 +++- usr.bin/mandoc/mandocdb.c | 5 ++++- usr.bin/mandoc/mdoc_argv.c | 3 ++- usr.bin/mandoc/mdoc_hash.c | 4 +++- 5 files changed, 16 insertions(+), 5 deletions(-) diff --git a/usr.bin/mandoc/main.c b/usr.bin/mandoc/main.c index 1a4092fe80e..42c39ce0a70 100644 --- a/usr.bin/mandoc/main.c +++ b/usr.bin/mandoc/main.c @@ -1,4 +1,4 @@ -/* $OpenBSD: main.c,v 1.173 2016/07/08 22:27:58 schwarze Exp $ */ +/* $OpenBSD: main.c,v 1.174 2016/07/15 18:02:32 schwarze Exp $ */ /* * Copyright (c) 2008-2012 Kristaps Dzonsons * Copyright (c) 2010-2012, 2014-2016 Ingo Schwarze @@ -75,6 +75,9 @@ struct curparse { struct manoutput *outopts; /* output options */ }; + +int mandocdb(int, char *[]); + static int fs_lookup(const struct manpaths *, size_t ipath, const char *, const char *, const char *, diff --git a/usr.bin/mandoc/man_hash.c b/usr.bin/mandoc/man_hash.c index be57bc5d07b..528e37bfa04 100644 --- a/usr.bin/mandoc/man_hash.c +++ b/usr.bin/mandoc/man_hash.c @@ -1,4 +1,4 @@ -/* $OpenBSD: man_hash.c,v 1.24 2015/10/06 18:30:43 schwarze Exp $ */ +/* $OpenBSD: man_hash.c,v 1.25 2016/07/15 18:02:32 schwarze Exp $ */ /* * Copyright (c) 2008, 2009, 2010 Kristaps Dzonsons * Copyright (c) 2015 Ingo Schwarze @@ -22,8 +22,10 @@ #include #include +#include "mandoc.h" #include "roff.h" #include "man.h" +#include "libmandoc.h" #include "libman.h" #define HASH_DEPTH 6 diff --git a/usr.bin/mandoc/mandocdb.c b/usr.bin/mandoc/mandocdb.c index 8ac8bf46e8a..f2b81a12ee7 100644 --- a/usr.bin/mandoc/mandocdb.c +++ b/usr.bin/mandoc/mandocdb.c @@ -1,4 +1,4 @@ -/* $OpenBSD: mandocdb.c,v 1.170 2016/07/09 15:23:36 schwarze Exp $ */ +/* $OpenBSD: mandocdb.c,v 1.171 2016/07/15 18:02:32 schwarze Exp $ */ /* * Copyright (c) 2011, 2012 Kristaps Dzonsons * Copyright (c) 2011-2016 Ingo Schwarze @@ -128,6 +128,9 @@ struct mdoc_handler { uint64_t mask; /* set unless handler returns 0 */ }; + +int mandocdb(int, char *[]); + static void dbclose(int); static void dbadd(struct mpage *); static void dbadd_mlink(const struct mlink *mlink); diff --git a/usr.bin/mandoc/mdoc_argv.c b/usr.bin/mandoc/mdoc_argv.c index 42124f82ddd..4ea7b4d1f5d 100644 --- a/usr.bin/mandoc/mdoc_argv.c +++ b/usr.bin/mandoc/mdoc_argv.c @@ -1,4 +1,4 @@ -/* $OpenBSD: mdoc_argv.c,v 1.63 2015/10/17 00:19:58 schwarze Exp $ */ +/* $OpenBSD: mdoc_argv.c,v 1.64 2016/07/15 18:02:32 schwarze Exp $ */ /* * Copyright (c) 2008, 2009, 2010, 2011 Kristaps Dzonsons * Copyright (c) 2012, 2014, 2015 Ingo Schwarze @@ -27,6 +27,7 @@ #include "roff.h" #include "mdoc.h" #include "libmandoc.h" +#include "roff_int.h" #include "libmdoc.h" #define MULTI_STEP 5 /* pre-allocate argument values */ diff --git a/usr.bin/mandoc/mdoc_hash.c b/usr.bin/mandoc/mdoc_hash.c index d480f6ab995..4c9480b653a 100644 --- a/usr.bin/mandoc/mdoc_hash.c +++ b/usr.bin/mandoc/mdoc_hash.c @@ -1,4 +1,4 @@ -/* $OpenBSD: mdoc_hash.c,v 1.21 2015/10/06 18:30:44 schwarze Exp $ */ +/* $OpenBSD: mdoc_hash.c,v 1.22 2016/07/15 18:02:32 schwarze Exp $ */ /* * Copyright (c) 2008, 2009 Kristaps Dzonsons * Copyright (c) 2015 Ingo Schwarze @@ -24,8 +24,10 @@ #include #include +#include "mandoc.h" #include "roff.h" #include "mdoc.h" +#include "libmandoc.h" #include "libmdoc.h" static unsigned char table[27 * 12]; -- 2.20.1