Skip to content

Commit

Permalink
fix format warning with 32-bit platforms on musl
Browse files Browse the repository at this point in the history
musl uses 64-bit time_t, even on 32-bit platforms. Cast to avoid the warning.
  • Loading branch information
neheb authored Jun 28, 2024
1 parent e4cf037 commit 45a4d86
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion p11-kit/server.c
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@
#include <assert.h>
#include <errno.h>
#include <fcntl.h>
#include <inttypes.h>
#include <limits.h>
#include <stdio.h>
#include <stdlib.h>
Expand Down Expand Up @@ -558,7 +559,7 @@ server_loop (Server *server,

/* timeout */
if (ret == 0 && children_avail == 0 && timeout != NULL) {
p11_message (_("no connections to %s for %lu secs, exiting"), server->socket_name, timeout->tv_sec);
p11_message (_("no connections to %s for %" PRIu64 " secs, exiting"), server->socket_name, (uint64_t)timeout->tv_sec);
break;
}

Expand Down

0 comments on commit 45a4d86

Please sign in to comment.