]> git.ipfire.org Git - thirdparty/libbsd.git/commitdiff
Remove unused includes and protect header
authorGuillem Jover <guillem@hadrons.org>
Tue, 14 Feb 2006 07:01:21 +0000 (07:01 +0000)
committerGuillem Jover <guillem@hadrons.org>
Tue, 6 May 2008 05:51:43 +0000 (08:51 +0300)
ChangeLog
include/bsd/getopt.h
include/bsd/stdlib.h

index 8cfee821bb0e46495df01cc7a1013a2d9a33b6fe..9ae095d08f473ebe8795ca1c2e414ecc22f1674a 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2006-02-14  Guillem Jover  <guillem@debian.org>
+
+       * include/bsd/stdlib.h: Remove <sys/types.h> and <stdio.h>.
+       * include/bsd/getopt.h: Protect header from multiple inclusion.
+
 2006-02-14  Guillem Jover  <guillem@debian.org>
 
        * include/bsd/bsd.h: Remove commented out macros.
index bf78f01208f02b4bf6484d7ac5ef0e0914360445..0df89daa7407edc569cc01b577647293060bc151 100644 (file)
@@ -1,4 +1,10 @@
+#ifndef LIBBSD_GETOPT_H
+#define LIBBSD_GETOPT_H
+
 #include <getopt.h>
+
 extern int optreset;
 
 int bsd_getopt (int, char **, char *);
+
+#endif
index 4881e57d2a40ce5aff97a72d724741ccb738201b..ee358b619675d17e10f104d6085fc1fe43e08620 100644 (file)
@@ -1,9 +1,6 @@
 #ifndef LIBBSD_STDLIB_H
 #define LIBBSD_STDLIB_H
 
-#include <sys/types.h>
-#include <stdio.h>
-
 const char *fmtcheck(const char *, const char *);
 
 #endif