From 19dc75e9c2d6c94cc1975ae790af35e50e667ae0 Mon Sep 17 00:00:00 2001 From: jak1 Date: Thu, 17 Aug 2023 00:12:24 +0200 Subject: fix std C++03 removed brackets from va_list (compiler warning) added missing cstdint header to stringutils (compiler error: uint32_t) --- src/stringutils.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/stringutils.cpp b/src/stringutils.cpp index e903941..dacf692 100644 --- a/src/stringutils.cpp +++ b/src/stringutils.cpp @@ -26,6 +26,7 @@ #include #include #include +#include #include #include @@ -87,7 +88,7 @@ const char *ipToString(const uint32_t address) std::string strprintf(const char *const format, ...) { char buf[257]; - va_list(args); + va_list args; va_start(args, format); size_t nb = vsnprintf(buf, 256, format, args); buf[256] = 0; -- cgit v1.2.3-60-g2f50