mirror of
https://git.gnunet.org/libmicrohttpd.git
synced 2026-09-29 04:09:31 +03:00
Use type specifiers for printf() from inttypes.h
This should improve compatibility with various C libs.
This commit is contained in:
6 files changed
+38
-17
No files matched your search
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user