Use type specifiers for printf() from inttypes.h

This should improve compatibility with various C libs.
This commit is contained in:
Evgeny Grin (Karlson2k) committed 2021-09-17 11:53:55 +03:00
1 parent bd3325c924
commit bf1993237a
6 files changed
+38 -17

No files matched your search

+8 -1
View File
@@ -25,6 +25,13 @@
#include "platform.h"
#include <microhttpd.h>
#ifdef HAVE_INTTYPES_H
#include <inttypes.h>
#endif /* HAVE_INTTYPES_H */
#ifndef PRIu64
#define PRIu64 "llu"
#endif /* ! PRIu64 */
#if defined(MHD_CPU_COUNT) && (MHD_CPU_COUNT + 0) < 2
#undef MHD_CPU_COUNT
#endif
@@ -87,7 +94,7 @@ completed_callback (void *cls,
if (delta < SMALL)
small_deltas[delta]++;
else
fprintf (stdout, "D: %llu 1\n", (unsigned long long) delta);
fprintf (stdout, "D: %" PRIu64 " 1\n", delta);
free (tv);
}