From 00e4abcc2f8a01af9f4c7fa0cdd1363d31ed42fe Mon Sep 17 00:00:00 2001 From: MrDave Date: Sun, 17 Oct 2021 22:57:36 -0600 Subject: [PATCH] Resolve warnings --- src/logger.cpp | 2 +- src/webu.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/logger.cpp b/src/logger.cpp index d66bbad7..f87e860c 100644 --- a/src/logger.cpp +++ b/src/logger.cpp @@ -133,7 +133,7 @@ void motion_log(int level, int type, int errno_flag,int fncname, const char *fmt static int flood_cnt = 0; static char flood_msg[1024]; - static char prefix_msg[1024]; + static char prefix_msg[512]; char flood_repeats[1024]; char threadname[32]; int applvl, apptyp; diff --git a/src/webu.cpp b/src/webu.cpp index 776605e6..9dd6289f 100644 --- a/src/webu.cpp +++ b/src/webu.cpp @@ -780,7 +780,7 @@ static mhdrslt webu_iterate_post (void *ptr, enum MHD_ValueKind kind /* Answer the get request from the user */ static mhdrslt webu_answer_get(struct ctx_webui *webui) { - int retcd; + mhdrslt retcd; MOTION_LOG(DBG, TYPE_STREAM, NO_ERRNO ,"processing get");