[libglnx/wip/smcv/warnings: 3/7] fdio: Make signedness of iterator consistent with limit
- From: Simon McVittie <smcv src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libglnx/wip/smcv/warnings: 3/7] fdio: Make signedness of iterator consistent with limit
- Date: Sun, 24 Apr 2022 10:09:25 +0000 (UTC)
commit d78121a6997c833cf3c367b432f668551ee3ae1e
Author: Simon McVittie <smcv collabora com>
Date: Sun Apr 24 11:04:00 2022 +0100
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>
glnx-fdio.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
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);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]