Gentoo Archives: gentoo-commits

From: Fabian Groffen <grobian@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/portage-utils:master commit in: /
Date: Sat, 14 Dec 2019 17:01:05
Message-Id: 1576336648.90f9598b63f684966a0e3a063d8cfd6b125ea065.grobian@gentoo
1 commit: 90f9598b63f684966a0e3a063d8cfd6b125ea065
2 Author: Fabian Groffen <grobian <AT> gentoo <DOT> org>
3 AuthorDate: Sat Dec 14 15:17:28 2019 +0000
4 Commit: Fabian Groffen <grobian <AT> gentoo <DOT> org>
5 CommitDate: Sat Dec 14 15:17:28 2019 +0000
6 URL: https://gitweb.gentoo.org/proj/portage-utils.git/commit/?id=90f9598b
7
8 qlop: fix signedness warning
9
10 Signed-off-by: Fabian Groffen <grobian <AT> gentoo.org>
11
12 qlop.c | 2 +-
13 1 file changed, 1 insertion(+), 1 deletion(-)
14
15 diff --git a/qlop.c b/qlop.c
16 index d8e1d58..7cc8f44 100644
17 --- a/qlop.c
18 +++ b/qlop.c
19 @@ -1109,7 +1109,7 @@ static array_t *probe_proc(array_t *atoms)
20 rpath[rpathlen] = '\0';
21 /* check if this points to a portage build:
22 * <somepath>/portage/<cat>/<pf>/temp/build.log */
23 - if (rpathlen > sizeof("/temp/build.log") &&
24 + if ((size_t)rpathlen > sizeof("/temp/build.log") &&
25 strcmp(rpath + rpathlen -
26 (sizeof("/temp/build.log") - 1),
27 "/temp/build.log") == 0 &&