summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon McVittie <smcv@collabora.com>2022-04-24 11:07:38 +0100
committerSimon McVittie <smcv@collabora.com>2022-04-24 11:07:38 +0100
commit7b26e39a1f687b1a209b73fecd76c083037d5c2f (patch)
tree5f5cc518611c9d8431905b664d0e674ad7fd258e
parent4c51a54c36eb1a9d728acb14a700271adc7e0ee4 (diff)
downloadlibglnx-7b26e39a1f687b1a209b73fecd76c083037d5c2f.tar.gz
tests: Make signedness of timestamp agree
This silences a warning from gcc -Wsign-compare. g_get_monotonic_time() returns a signed int64. Signed-off-by: Simon McVittie <smcv@collabora.com>
-rw-r--r--tests/test-libglnx-xattrs.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/test-libglnx-xattrs.c b/tests/test-libglnx-xattrs.c
index ad52b76..1de9acd 100644
--- a/tests/test-libglnx-xattrs.c
+++ b/tests/test-libglnx-xattrs.c
@@ -182,7 +182,7 @@ xattr_thread (gpointer data)
g_autoptr(GError) local_error = NULL;
GError **error = &local_error;
struct XattrWorker *worker = data;
- guint64 end_time = g_get_monotonic_time () + XATTR_THREAD_RUN_TIME_USECS;
+ gint64 end_time = g_get_monotonic_time () + XATTR_THREAD_RUN_TIME_USECS;
guint n_read = 0;
while (g_get_monotonic_time () < end_time)