diff options
author | Michihiro NAKAJIMA <ggcueroad@gmail.com> | 2012-02-29 10:56:57 +0900 |
---|---|---|
committer | Michihiro NAKAJIMA <ggcueroad@gmail.com> | 2012-02-29 10:56:57 +0900 |
commit | 160411f11d9e6ad3b51fa1c5fd8a9a5412034741 (patch) | |
tree | 52369aad887bdfd8b88ef804b68dbe392c8e87f7 /cpio | |
parent | 27d571df37763d10f9add34279c9e20504f74507 (diff) | |
download | libarchive-160411f11d9e6ad3b51fa1c5fd8a9a5412034741.tar.gz |
Fix a printf format type for id_t. FreeBSD's id_t is int64_t.
Diffstat (limited to 'cpio')
-rw-r--r-- | cpio/cpio.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/cpio/cpio.c b/cpio/cpio.c index bae74f9c..7095b620 100644 --- a/cpio/cpio.c +++ b/cpio/cpio.c @@ -1316,7 +1316,8 @@ lookup_uname_helper(struct cpio *cpio, const char **name, id_t id) if (pwent == NULL) { *name = NULL; if (errno != 0 && errno != ENOENT) - lafe_warnc(errno, "getpwuid(%d) failed", id); + lafe_warnc(errno, "getpwuid(%s) failed", + cpio_i64toa((int64_t)id)); return (errno); } @@ -1343,7 +1344,8 @@ lookup_gname_helper(struct cpio *cpio, const char **name, id_t id) if (grent == NULL) { *name = NULL; if (errno != 0) - lafe_warnc(errno, "getgrgid(%d) failed", id); + lafe_warnc(errno, "getgrgid(%s) failed", + cpio_i64toa((int64_t)id)); return (errno); } |