[pacman-dev] [PATCH 2/4] Clean up <inttypes.h> header inclusions

Dan McGee dan at archlinux.org
Sat Jan 7 12:28:57 EST 2012


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 at 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



More information about the pacman-dev mailing list