aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@openbsd.org>2016-07-09 15:24:19 +0000
committerIngo Schwarze <schwarze@openbsd.org>2016-07-09 15:24:19 +0000
commitd223bd5bcbc7169cc6059ddf87de06fa3e91a2a4 (patch)
tree5d5ef9001793074c0b5a413cae652f87fe6fb7dc
parent6d1b91c7d52857bb2fa40ca8bd7891e461e37590 (diff)
downloadmandoc-d223bd5bcbc7169cc6059ddf87de06fa3e91a2a4.tar.gz
mandoc-d223bd5bcbc7169cc6059ddf87de06fa3e91a2a4.tar.zst
mandoc-d223bd5bcbc7169cc6059ddf87de06fa3e91a2a4.zip
getopt(3) is declared in <unistd.h>, and <getopt.h> is not needed;
from Joerg Sonnenberger via Thomas Klausner, NetBSD.
-rw-r--r--demandoc.c3
-rw-r--r--mandocdb.c3
-rw-r--r--manpage.c3
-rw-r--r--mansearch.c3
4 files changed, 4 insertions, 8 deletions
diff --git a/demandoc.c b/demandoc.c
index 13b78903..c33fd891 100644
--- a/demandoc.c
+++ b/demandoc.c
@@ -1,4 +1,4 @@
-/* $Id: demandoc.c,v 1.26 2016/01/08 02:53:13 schwarze Exp $ */
+/* $Id: demandoc.c,v 1.27 2016/07/09 15:24:19 schwarze Exp $ */
/*
* Copyright (c) 2011 Kristaps Dzonsons <kristaps@bsd.lv>
*
@@ -20,7 +20,6 @@
#include <assert.h>
#include <ctype.h>
-#include <getopt.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
diff --git a/mandocdb.c b/mandocdb.c
index b8966fc8..fa23ad0e 100644
--- a/mandocdb.c
+++ b/mandocdb.c
@@ -1,4 +1,4 @@
-/* $Id: mandocdb.c,v 1.216 2016/03/17 21:26:26 schwarze Exp $ */
+/* $Id: mandocdb.c,v 1.217 2016/07/09 15:24:19 schwarze Exp $ */
/*
* Copyright (c) 2011, 2012 Kristaps Dzonsons <kristaps@bsd.lv>
* Copyright (c) 2011-2016 Ingo Schwarze <schwarze@openbsd.org>
@@ -33,7 +33,6 @@
#else
#include "compat_fts.h"
#endif
-#include <getopt.h>
#include <limits.h>
#include <stddef.h>
#include <stdio.h>
diff --git a/manpage.c b/manpage.c
index 45b6e765..af7d3db2 100644
--- a/manpage.c
+++ b/manpage.c
@@ -1,4 +1,4 @@
-/* $Id: manpage.c,v 1.13 2015/11/07 17:58:55 schwarze Exp $ */
+/* $Id: manpage.c,v 1.14 2016/07/09 15:24:19 schwarze Exp $ */
/*
* Copyright (c) 2012 Kristaps Dzonsons <kristaps@bsd.lv>
* Copyright (c) 2013 Ingo Schwarze <schwarze@openbsd.org>
@@ -20,7 +20,6 @@
#include <sys/types.h>
#include <assert.h>
-#include <getopt.h>
#include <limits.h>
#include <stdint.h>
#include <stdio.h>
diff --git a/mansearch.c b/mansearch.c
index 843326ba..1ab879d7 100644
--- a/mansearch.c
+++ b/mansearch.c
@@ -1,4 +1,4 @@
-/* $Id: mansearch.c,v 1.64 2016/01/08 15:02:54 schwarze Exp $ */
+/* $Id: mansearch.c,v 1.65 2016/07/09 15:24:19 schwarze Exp $ */
/*
* Copyright (c) 2012 Kristaps Dzonsons <kristaps@bsd.lv>
* Copyright (c) 2013, 2014, 2015 Ingo Schwarze <schwarze@openbsd.org>
@@ -26,7 +26,6 @@
#endif
#include <errno.h>
#include <fcntl.h>
-#include <getopt.h>
#include <glob.h>
#include <limits.h>
#include <regex.h>