From 2a1e9668f8d4c0383ae017a99bc77b26cf8496c9 Mon Sep 17 00:00:00 2001 From: Rainer Gerhards Date: Sun, 1 Mar 2015 14:25:47 +0100 Subject: [PATCH] non-void function setMaxLine does not return anything closes https://github.com/rsyslog/rsyslog/issues/255 --- runtime/glbl.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/runtime/glbl.c b/runtime/glbl.c index f0750a2..01f82d4 100644 --- a/runtime/glbl.c +++ b/runtime/glbl.c @@ -361,7 +361,7 @@ static rsRetVal setWorkDir(void __attribute__((unused)) *pVal, uchar *pNewVal) /* This function is used both by legacy and RainerScript conf. It is a real setter. */ -static rsRetVal +static void setMaxLine(const int64_t iNew) { if(iNew < 128) { @@ -381,9 +381,8 @@ setMaxLine(const int64_t iNew) static rsRetVal legacySetMaxMessageSize(void __attribute__((unused)) *pVal, int64_t iNew) { - DEFiRet; - iRet = setMaxLine(iNew); - RETiRet; + setMaxLine(iNew); + return RS_RET_OK; } static rsRetVal