Skip to content

Commit

Permalink
Fix int conversion warning
Browse files Browse the repository at this point in the history
  • Loading branch information
sashacmc committed Dec 17, 2024
1 parent 2f2efb0 commit 27bdc69
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions examples/unix/c11/z_liveliness.c
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand All @@ -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' ||
Expand Down

0 comments on commit 27bdc69

Please sign in to comment.