Radish alpha
H
rad:z3QDZAW2FAfuLvihrhiyDC9fAD8G9
HardenedBSD Package Manager
Radicle
Git
Removed unused headers
Baptiste Daroussin committed 14 years ago
commit 80ac28fb9eb56e6473d5ef5e541b81dafbda85e4
parent 5647a1d
30 files changed +2 -81
modified libpkg/fetch.c
@@ -26,14 +26,10 @@

#include <sys/param.h>

-
#include <errno.h>
#include <fcntl.h>
-
#include <libgen.h>
#include <stdio.h>
-
#include <string.h>
#include <time.h>
#include <unistd.h>
-
#include <stdlib.h>
#include <fetch.h>

#include "pkg.h"
modified libpkg/packing.c
@@ -26,7 +26,6 @@
 */

#include <sys/cdefs.h>
-
#include <sys/types.h>
#include <sys/stat.h>

#include <archive.h>
modified libpkg/pkg.c
@@ -25,17 +25,11 @@
 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
 */

-
#include <sys/types.h>
-

#include <archive.h>
#include <archive_entry.h>
#include <assert.h>
-
#include <errno.h>
-
#include <fcntl.h>
-
#include <libutil.h>
#include <string.h>
#include <stdlib.h>
-
#include <sysexits.h>

#include "pkg.h"
#include "private/event.h"
modified libpkg/pkg_config.c
@@ -25,7 +25,6 @@
 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
 */

-
#include <sys/types.h>
#include <sys/queue.h>

#include <assert.h>
modified libpkg/pkg_create.c
@@ -28,15 +28,10 @@
#include <sys/param.h>
#include <sys/stat.h>

-
#include <archive.h>
-
#include <archive_entry.h>
#include <assert.h>
#include <errno.h>
#include <stdlib.h>
-
#include <glob.h>
-
#include <libgen.h>
#include <string.h>
-
#include <fcntl.h>

#include "pkg.h"
#include "private/event.h"
modified libpkg/pkg_delete.c
@@ -27,9 +27,6 @@
 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
 */

-
#include <sys/stat.h>
-
#include <sys/types.h>
-

#include <assert.h>
#include <errno.h>
#include <string.h>
modified libpkg/pkg_elf.c
@@ -34,7 +34,6 @@

#include "pkg.h"
#include "private/event.h"
-
#include "private/pkg.h"

static int
analyse_elf(struct pkgdb *db, struct pkg *pkg, const char *fpath)
modified libpkg/pkg_jobs.c
@@ -26,7 +26,6 @@
 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
 */

-
#include <syslog.h>
#include <sys/param.h>
#include <sys/mount.h>

modified libpkg/pkg_manifest.c
@@ -30,14 +30,11 @@

#include <assert.h>
#include <ctype.h>
-
#include <wctype.h>
#include <errno.h>
-
#include <inttypes.h>
#include <stdbool.h>
#include <stdlib.h>
#include <string.h>
#include <yaml.h>
-
#include <wchar.h>

#include "pkg.h"
#include "private/event.h"
modified libpkg/pkg_ports.c
@@ -25,7 +25,6 @@
 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
 */

-
#include <sys/types.h>
#include <sys/stat.h>

#include <assert.h>
modified libpkg/pkg_repo.c
@@ -27,12 +27,8 @@
 */

#include <sys/stat.h>
-
#include <sys/types.h>

-
#include <archive.h>
-
#include <archive_entry.h>
#include <assert.h>
-
#include <errno.h>
#include <fts.h>
#include <libgen.h>
#include <sqlite3.h>
modified libpkg/pkgdb.c
@@ -29,15 +29,11 @@
 */

#include <sys/param.h>
-
#include <sys/stat.h>
-
#include <sys/types.h>

#include <assert.h>
#include <errno.h>
-
#include <fcntl.h>
#include <regex.h>
#include <grp.h>
-
#include <pwd.h>
#include <libutil.h>
#include <stdlib.h>
#include <stdio.h>
modified libpkg/rcscripts.c
@@ -24,8 +24,6 @@
 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
 */

-
#include <sys/param.h>
-
#include <sys/types.h>
#include <sys/wait.h>

#include <errno.h>
@@ -34,7 +32,6 @@
#include <unistd.h>

#include "pkg.h"
-
#include "private/event.h"
#include "private/pkg.h"

static int rc_stop(const char *);
modified libpkg/utils.c
@@ -30,7 +30,6 @@
#include <stdio.h>

#include <assert.h>
-
#include <dirent.h>
#include <errno.h>
#include <fcntl.h>
#include <stdlib.h>
modified pkg/add.c
@@ -26,11 +26,9 @@
 */

#include <sys/param.h>
-
#include <sys/types.h>

#include <err.h>
#include <libgen.h>
-
#include <stdbool.h>
#include <stdio.h>
#include <string.h>
#include <sysexits.h>
modified pkg/audit.c
@@ -30,7 +30,6 @@
#define _WITH_GETLINE

#include <archive.h>
-
#include <archive_entry.h>
#include <err.h>
#include <errno.h>
#include <fcntl.h>
@@ -42,7 +41,6 @@
#include <sysexits.h>

#include <pkg.h>
-

#include "pkgcli.h"

#define AUDIT_URL "http://portaudit.FreeBSD.org/auditfile.tbz"
modified pkg/autoremove.c
@@ -25,16 +25,10 @@
 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
 */

-
#include <sys/param.h>
-
#include <sys/types.h>
-

#include <err.h>
-
#include <stdlib.h>
#include <stdio.h>
#include <sysexits.h>
#include <unistd.h>
-
#include <string.h>
-
#include <fcntl.h>
#include <libutil.h>

#include <pkg.h>
modified pkg/clean.c
@@ -24,7 +24,6 @@
 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
 */

-
#include <sys/types.h>
#include <sys/stat.h>

#include <err.h>
modified pkg/delete.c
@@ -26,14 +26,11 @@
 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
 */

-
#include <sys/types.h>
-

#include <err.h>
#include <stdio.h>
#include <sysexits.h>
#include <unistd.h>
#include <libutil.h>
-
#include <string.h>

#include <pkg.h>

modified pkg/event.c
@@ -28,10 +28,9 @@
 */

#include <sys/param.h>
-
#include <sys/types.h>
-
#include <string.h>
+

#include <err.h>
-
#include <stdarg.h>
+
#include <string.h>
#include <unistd.h>

#include "pkg.h"
modified pkg/info.c
@@ -27,10 +27,7 @@
 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
 */

-
#include <sys/types.h>
-

#include <err.h>
-
#include <inttypes.h>
#include <pkg.h>
#include <stdbool.h>
#include <stdio.h>
modified pkg/query.c
@@ -29,7 +29,6 @@
#include <sys/sbuf.h>

#include <ctype.h>
-
#include <err.h>
#include <inttypes.h>
#include <libutil.h>
#include <pkg.h>
modified pkg/register.c
@@ -26,8 +26,6 @@
 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
 */

-
#include <sys/stat.h>
-
#include <sys/types.h>
#include <sys/param.h>
#include <sys/utsname.h>

modified pkg/repo.c
@@ -27,11 +27,9 @@
#include <sysexits.h>
#include <stdio.h>
#include <string.h>
-
#include <sys/param.h>
#include <readpassphrase.h>

#include <pkg.h>
-
#include <fcntl.h>

#include "pkgcli.h"

modified pkg/search.c
@@ -27,7 +27,6 @@
 */

#include <stdio.h>
-
#include <stdbool.h>
#include <string.h>
#include <unistd.h>
#include <sysexits.h>
modified pkg/update.c
@@ -27,11 +27,8 @@
 */

#include <sys/param.h>
-
#include <sys/types.h>

#include <err.h>
-
#include <fcntl.h>
-
#include <libutil.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
modified pkg/updating.c
@@ -24,7 +24,6 @@
 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
 */

-
#include <sys/param.h>
#include <sys/queue.h>

#define _WITH_GETLINE
modified pkg/upgrade.c
@@ -24,16 +24,10 @@
 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
 */

-
#include <sys/param.h>
-
#include <sys/types.h>
-

#include <err.h>
-
#include <stdlib.h>
#include <stdio.h>
#include <sysexits.h>
#include <unistd.h>
-
#include <string.h>
-
#include <fcntl.h>
#include <libutil.h>

#include <pkg.h>
modified pkg/utils.c
@@ -27,10 +27,7 @@
 */

#include <sys/param.h>
-
#include <sys/stat.h>

-
#include <err.h>
-
#include <errno.h>
#include <libutil.h>
#include <string.h>
#include <unistd.h>
modified pkg/which.c
@@ -28,13 +28,9 @@

#include <sys/param.h>

-
#include <err.h>
#include <stdio.h>
#include <pkg.h>
-
#include <libgen.h>
-
#include <stdlib.h>
#include <string.h>
-
#include <unistd.h>
#include <sysexits.h>

#include "pkgcli.h"