aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFabian Groffen <grobian@gentoo.org>2019-03-27 21:18:20 +0100
committerFabian Groffen <grobian@gentoo.org>2019-03-27 21:18:20 +0100
commit3cf77d19bd7f3abd323e4f148f73575cee8ac85b (patch)
tree145f4d97eef00fe3691ad4276d5d1b267b74364b /qmerge.c
parentconfigure: ignore expansion undefined warnings for gnulib (diff)
downloadportage-utils-3cf77d19bd7f3abd323e4f148f73575cee8ac85b.tar.gz
portage-utils-3cf77d19bd7f3abd323e4f148f73575cee8ac85b.tar.bz2
portage-utils-3cf77d19bd7f3abd323e4f148f73575cee8ac85b.zip
q: fix various issues on Linux systems
Signed-off-by: Fabian Groffen <grobian@gentoo.org>
Diffstat (limited to 'qmerge.c')
-rw-r--r--qmerge.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/qmerge.c b/qmerge.c
index 81da0b1..97726db 100644
--- a/qmerge.c
+++ b/qmerge.c
@@ -850,13 +850,13 @@ merge_tree_at(int fd_src, const char *src, int fd_dst, const char *dst,
int fd_srcf, fd_dstf;
unsigned char *hash;
const char *tmpname, *dname;
- char buf[_Q_PATH_MAX];
+ char buf[_Q_PATH_MAX * 2];
/* syntax: obj filename hash mtime */
hash = hash_file_at(subfd_src, name, HASH_MD5);
if (!pretend)
- fprintf(contents, "obj %s %s %"PRIu64"\n",
- cpath, hash, (uint64_t)st.st_mtime);
+ fprintf(contents, "obj %s %s %zu""\n",
+ cpath, hash, (size_t)st.st_mtime);
free(hash);
/* Check CONFIG_PROTECT */
@@ -954,8 +954,8 @@ merge_tree_at(int fd_src, const char *src, int fd_dst, const char *dst,
/* syntax: sym src -> dst mtime */
if (!pretend)
- fprintf(contents, "sym %s -> %s %"PRIu64"\n",
- cpath, sym, (uint64_t)st.st_mtime);
+ fprintf(contents, "sym %s -> %s %zu\n",
+ cpath, sym, (size_t)st.st_mtime);
qprintf("%s>>>%s %s%s -> %s%s\n", GREEN, NORM,
CYAN, cpath, sym, NORM);
*objs = add_set(cpath, *objs);