aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFabian Groffen <grobian@gentoo.org>2018-05-18 17:58:01 +0200
committerFabian Groffen <grobian@gentoo.org>2018-05-18 17:58:01 +0200
commita34f5c952f8da3a83be91244be006d4b59c72aa3 (patch)
treed52c85c8686bf96d396fc143a34263a3aee60c22
parentadd fall through comments for gcc-7 (diff)
downloadportage-utils-a34f5c952f8da3a83be91244be006d4b59c72aa3.tar.gz
portage-utils-a34f5c952f8da3a83be91244be006d4b59c72aa3.tar.bz2
portage-utils-a34f5c952f8da3a83be91244be006d4b59c72aa3.zip
qtegrity: fix signedness warning
-rw-r--r--qtegrity.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/qtegrity.c b/qtegrity.c
index 8af5b08..0b30fb8 100644
--- a/qtegrity.c
+++ b/qtegrity.c
@@ -138,7 +138,7 @@ static void get_digest_from_line(char * line, char * ret, int digest_size, int o
{
size_t dlenstr = strlen(line);
/* Skip first chars to get to digest depends on digest_func in IMA */
- int skip = ((digest_size == SHA256_DIGEST_LENGTH) ||
+ size_t skip = ((digest_size == SHA256_DIGEST_LENGTH) ||
(digest_size == SHA512_DIGEST_LENGTH)) ?
offset+8 : offset+6;