From e4b2193786a20c9b8afc88e6dcd9a01988a05838 Mon Sep 17 00:00:00 2001 From: Juan RP Date: Tue, 24 Dec 2013 10:58:55 +0100 Subject: [PATCH] bin/xbps-rindex/sign.c: fix a -Wsign-compare warning. --- bin/xbps-rindex/sign.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/xbps-rindex/sign.c b/bin/xbps-rindex/sign.c index d6e8e587..56a13b02 100644 --- a/bin/xbps-rindex/sign.c +++ b/bin/xbps-rindex/sign.c @@ -229,7 +229,7 @@ sign_repo(struct xbps_handle *xhp, const char *repodir, free(binpkg_sig); continue; } - if (write(binpkg_sig_fd, sig, siglen) != siglen) { + if (write(binpkg_sig_fd, sig, siglen) != (ssize_t)siglen) { fprintf(stderr, "failed to write %s: %s\n", binpkg_sig, strerror(errno)); free(sig); free(binpkg_sig);