diff options
author | Xavier Chantry <shiningxc@gmail.com> | 2009-11-14 20:26:37 +0100 |
---|---|---|
committer | Dan McGee <dan@archlinux.org> | 2010-03-26 03:58:35 +0100 |
commit | 7965345d435870a47073fffafa2a429744aa2deb (patch) | |
tree | fc4a902ffb0310af5a75bd47aec1c8b28be6d146 /lib/libalpm/be_files.c | |
parent | 21abae98cbd382d8fab4427109776d983cd07c9f (diff) | |
download | pacman-7965345d435870a47073fffafa2a429744aa2deb.tar.gz pacman-7965345d435870a47073fffafa2a429744aa2deb.tar.xz |
More consistent printing of off_t and time_t
time_t : %ld
off_t : %jd and cast to intmax_t
Signed-off-by: Xavier Chantry <shiningxc@gmail.com>
Signed-off-by: Dan McGee <dan@archlinux.org>
Diffstat (limited to 'lib/libalpm/be_files.c')
-rw-r--r-- | lib/libalpm/be_files.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/libalpm/be_files.c b/lib/libalpm/be_files.c index 955351ce..877bc505 100644 --- a/lib/libalpm/be_files.c +++ b/lib/libalpm/be_files.c @@ -25,7 +25,7 @@ #include <stdlib.h> #include <errno.h> #include <string.h> -#include <stdint.h> /* uintmax_t, intmax_t */ +#include <stdint.h> /* intmax_t */ #include <sys/stat.h> #include <dirent.h> #include <ctype.h> @@ -831,11 +831,11 @@ int _alpm_db_write(pmdb_t *db, pmpkg_t *info, pmdbinfrq_t inforeq) } if(info->builddate) { fprintf(fp, "%%BUILDDATE%%\n" - "%ju\n\n", (uintmax_t)info->builddate); + "%ld\n\n", info->builddate); } if(info->installdate) { fprintf(fp, "%%INSTALLDATE%%\n" - "%ju\n\n", (uintmax_t)info->installdate); + "%ld\n\n", info->installdate); } if(info->packager) { fprintf(fp, "%%PACKAGER%%\n" |