FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > ArchLinux > ArchLinux Pacman Development

 
 
LinkBack Thread Tools
 
Old 01-07-2012, 04:28 PM
Dan McGee
 
Default 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
 

Thread Tools




All times are GMT. The time now is 05:39 PM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org