From 27bdc69eaa373b56fadd98cb1f330aa7ab741da6 Mon Sep 17 00:00:00 2001 From: Alexander Bushnev Date: Tue, 17 Dec 2024 16:56:03 +0100 Subject: [PATCH] Fix int conversion warning --- examples/unix/c11/z_liveliness.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/unix/c11/z_liveliness.c b/examples/unix/c11/z_liveliness.c index 0db1a9c10..ce8ca640c 100644 --- a/examples/unix/c11/z_liveliness.c +++ b/examples/unix/c11/z_liveliness.c @@ -24,7 +24,7 @@ int main(int argc, char **argv) { const char *mode = "client"; const char *clocator = NULL; const char *llocator = NULL; - unsigned int timeout = 0; + unsigned long timeout = 0; int opt; while ((opt = getopt(argc, argv, "k:e:m:l:t:")) != -1) { @@ -42,7 +42,7 @@ int main(int argc, char **argv) { llocator = optarg; break; case 't': - timeout = atoi(optarg); + timeout = (unsigned long)atoi(optarg); break; case '?': if (optopt == 'k' || optopt == 'e' || optopt == 'm' || optopt == 'v' || optopt == 'l' ||