From 408bad42eb8d76cdd0c504c2f97f21c0b424c3b1 Mon Sep 17 00:00:00 2001 From: Alin Mr Date: Sat, 24 Dec 2022 05:43:14 +0200 Subject: [PATCH] flock.c: printf: ensure format & param types match --- src/flock.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/flock.c b/src/flock.c index 8f1f0de..0e4dede 100644 --- a/src/flock.c +++ b/src/flock.c @@ -320,7 +320,7 @@ int main(int argc, char *argv[]) { } if (verbose) { gettimeofday(&t_l_acq,NULL); - printf("took %1u microseconds\n", (t_l_acq.tv_usec - t_l_req.tv_usec)); // not adding due to time constraints + printf("took %1lu microseconds\n", (unsigned long) (t_l_acq.tv_usec - t_l_req.tv_usec)); // not adding due to time constraints } if (have_timeout) {