diff options
author | Simon McVittie <smcv@collabora.com> | 2022-04-24 11:04:00 +0100 |
---|---|---|
committer | Simon McVittie <smcv@collabora.com> | 2022-04-24 11:04:00 +0100 |
commit | d78121a6997c833cf3c367b432f668551ee3ae1e (patch) | |
tree | 37400e38e3ebd6aa6f704094ad80fb6ed5939c80 | |
parent | 2d007fa1c0dcbd93206139ed10e238f3696c5206 (diff) | |
download | libglnx-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.c | 2 |
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); |