Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorDan McGee <dan@archlinux.org>2007-07-01 20:22:42 -0400
committerDan McGee <dan@archlinux.org>2007-07-01 20:22:42 -0400
commitcd3a63681338b7510846837dcc169d276cf75458 (patch)
tree96d950fee17b939bfc4d46a41ea62fb90702d5f3 /lib
parent19f66083f0aef92af84761fd62245270e97c6f33 (diff)
Remove unnecessary and extra includes
Signed-off-by: Dan McGee <dan@archlinux.org>
Diffstat (limited to 'lib')
-rw-r--r--lib/libalpm/db.c7
-rw-r--r--lib/libalpm/remove.c7
-rw-r--r--lib/libalpm/server.c1
-rw-r--r--lib/libalpm/sync.c2
4 files changed, 0 insertions, 17 deletions
diff --git a/lib/libalpm/db.c b/lib/libalpm/db.c
index 470f45aa..95a1ecb3 100644
--- a/lib/libalpm/db.c
+++ b/lib/libalpm/db.c
@@ -31,15 +31,8 @@
#include <errno.h>
#include <string.h>
#include <sys/stat.h>
-#if defined(__APPLE__) || defined(__OpenBSD__)
-#include <sys/syslimits.h>
-#include <sys/stat.h>
-#endif
#include <dirent.h>
#include <regex.h>
-#ifdef CYGWIN
-#include <limits.h> /* PATH_MAX */
-#endif
/* libalpm */
#include "db.h"
diff --git a/lib/libalpm/remove.c b/lib/libalpm/remove.c
index cc3afeb7..1a0b2d5e 100644
--- a/lib/libalpm/remove.c
+++ b/lib/libalpm/remove.c
@@ -31,14 +31,7 @@
#include <fcntl.h>
#include <string.h>
#include <limits.h>
-#if defined(__APPLE__) || defined(__OpenBSD__)
-#include <sys/syslimits.h>
-#endif
-#if defined(__APPLE__) || defined(__OpenBSD__) || defined(__sun__)
-#include <sys/stat.h>
-#endif
#include <unistd.h>
-#include <errno.h>
/* libalpm */
#include "remove.h"
diff --git a/lib/libalpm/server.c b/lib/libalpm/server.c
index abd16dbe..5b41a808 100644
--- a/lib/libalpm/server.c
+++ b/lib/libalpm/server.c
@@ -39,7 +39,6 @@
#include "alpm.h"
#include "util.h"
#include "handle.h"
-#include "log.h"
#include "package.h"
/** Fetch a remote pkg.
diff --git a/lib/libalpm/sync.c b/lib/libalpm/sync.c
index f60e582f..b04e1f49 100644
--- a/lib/libalpm/sync.c
+++ b/lib/libalpm/sync.c
@@ -47,11 +47,9 @@
#include "util.h"
#include "versioncmp.h"
#include "handle.h"
-#include "util.h"
#include "alpm.h"
#include "md5.h"
#include "sha1.h"
-#include "handle.h"
#include "server.h"
pmsyncpkg_t *_alpm_sync_new(int type, pmpkg_t *spkg, void *data)