From e597c48d775cfd7a6bb18721380f37c48de54bbe Mon Sep 17 00:00:00 2001 From: German Service Network Date: Sun, 24 Jul 2022 10:54:38 +0200 Subject: [PATCH] Fixing build warning long int on seqmap.c line 84 --- src/seqmap.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/seqmap.c b/src/seqmap.c index a1ecdef..4a4e38a 100644 --- a/src/seqmap.c +++ b/src/seqmap.c @@ -41,6 +41,7 @@ #include "options.h" #include "fping.h" +#include #include #include @@ -81,7 +82,7 @@ unsigned int seqmap_add(unsigned int host_nr, unsigned int ping_count, int64_t t * 0, so will be seen as expired */ next_value = &seqmap_map[seqmap_next_id]; if (timestamp - next_value->ping_ts < SEQMAP_TIMEOUT_IN_NS) { - fprintf(stderr, "fping error: not enough sequence numbers available! (expire_timeout=%ld, host_nr=%d, ping_count=%d, seqmap_next_id=%d)\n", + fprintf(stderr, "fping error: not enough sequence numbers available! (expire_timeout=%" PRId64 ", host_nr=%d, ping_count=%d, seqmap_next_id=%d)\n", SEQMAP_TIMEOUT_IN_NS, host_nr, ping_count, seqmap_next_id); exit(4); }