summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon McVittie <smcv@collabora.com>2022-04-24 11:04:00 +0100
committerSimon McVittie <smcv@collabora.com>2022-04-24 11:04:00 +0100
commitd78121a6997c833cf3c367b432f668551ee3ae1e (patch)
tree37400e38e3ebd6aa6f704094ad80fb6ed5939c80
parent2d007fa1c0dcbd93206139ed10e238f3696c5206 (diff)
downloadlibglnx-d78121a6997c833cf3c367b432f668551ee3ae1e.tar.gz
fdio: Make signedness of iterator consistent with limit
gcc -Wsign-compare warns about this. The iteration limit is constant and small enough that either int or guint would be fine. Signed-off-by: Simon McVittie <smcv@collabora.com>
-rw-r--r--glnx-fdio.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/glnx-fdio.c b/glnx-fdio.c
index c2896f3..c601f08 100644
--- a/glnx-fdio.c
+++ b/glnx-fdio.c
@@ -229,7 +229,7 @@ open_tmpfile_core (int dfd, const char *subpath,
const guint count_max = 100;
{ g_autofree char *tmp = g_strconcat (subpath, "/tmp.XXXXXX", NULL);
- for (int count = 0; count < count_max; count++)
+ for (guint count = 0; count < count_max; count++)
{
glnx_gen_temp_name (tmp);