Linux Archive

Linux Archive (http://www.linux-archive.org/)
-   ArchLinux Pacman Development (http://www.linux-archive.org/archlinux-pacman-development/)
-   -   Clean up header inclusions (http://www.linux-archive.org/archlinux-pacman-development/618382-clean-up-inttypes-h-header-inclusions.html)

Dan McGee 01-07-2012 04:28 PM

Clean up header inclusions
 
In both cases we can go with the slightly leaner <stdint.h> header
include since we aren't using the print macros.

Signed-off-by: Dan McGee <dan@archlinux.org>
---
lib/libalpm/add.c | 3 +--
lib/libalpm/alpm.h | 2 +-
2 files changed, 2 insertions(+), 3 deletions(-)

diff --git a/lib/libalpm/add.c b/lib/libalpm/add.c
index 014990d..e81d96f 100644
--- a/lib/libalpm/add.c
+++ b/lib/libalpm/add.c
@@ -26,8 +26,7 @@
#include <sys/types.h>
#include <sys/stat.h>
#include <unistd.h>
-#include <inttypes.h> /* int64_t */
-#include <stdint.h> /* intmax_t */
+#include <stdint.h> /* int64_t */

/* libarchive */
#include <archive.h>
diff --git a/lib/libalpm/alpm.h b/lib/libalpm/alpm.h
index 1751c81..95c817e 100644
--- a/lib/libalpm/alpm.h
+++ b/lib/libalpm/alpm.h
@@ -27,7 +27,7 @@
extern "C" {
#endif

-#include <inttypes.h> /* int64_t */
+#include <stdint.h> /* int64_t */
#include <sys/types.h> /* off_t */
#include <stdarg.h> /* va_list */

--
1.7.8.1


All times are GMT. The time now is 04:41 PM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.