代码拉取完成,页面将自动刷新
同步操作将从 src-openEuler/rsyslog 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
From d8c9771ad5d4a9ef952968a3aeadcecc2e1752a6 Mon Sep 17 00:00:00 2001
From: Dominik Andreas Schorpp <dominik.a.schorpp@vivavis.com>
Date: Mon, 2 Jan 2023 15:27:39 +0100
Subject: [PATCH] outchannel: eleminate type cast for compatibility reasons
According to the manpage the input for isspace must be of type unsigend char.
Remove all unnecessary type cast to achieve this.
Reference:https://github.com/rsyslog/rsyslog/pull/5056
Conflict:NA
Signed-off-by: Dominik Andreas Schorpp <dominik.a.schorpp@vivavis.com>
---
outchannel.c | 14 +++++++-------
1 file changed, 7 insertions(+), 7 deletions(-)
diff --git a/outchannel.c b/outchannel.c
index 2f456b5..2362810 100644
--- a/outchannel.c
+++ b/outchannel.c
@@ -67,19 +67,19 @@ struct outchannel* ochConstruct(void)
/* skips the next comma and any whitespace
* in front and after it.
*/
-static void skip_Comma(char **pp)
+static void skip_Comma(uchar **pp)
{
- register char *p;
+ register uchar *p;
assert(pp != NULL);
assert(*pp != NULL);
p = *pp;
- while(isspace((int)*p))
+ while(isspace(*p))
++p;
if(*p == ',')
++p;
- while(isspace((int)*p))
+ while(isspace(*p))
++p;
*pp = p;
}
@@ -98,7 +98,7 @@ static rsRetVal get_Field(uchar **pp, uchar **pField)
assert(*pp != NULL);
assert(pField != NULL);
- skip_Comma((char**)pp);
+ skip_Comma(pp);
p = *pp;
CHKiRet(cstrConstruct(&pStrB));
@@ -135,7 +135,7 @@ static int get_off_t(uchar **pp, off_t *pOff_t)
assert(*pp != NULL);
assert(pOff_t != NULL);
- skip_Comma((char**)pp);
+ skip_Comma(pp);
p = *pp;
val = 0;
@@ -166,7 +166,7 @@ static rsRetVal get_restOfLine(uchar **pp, uchar **pBuf)
assert(*pp != NULL);
assert(pBuf != NULL);
- skip_Comma((char**)pp);
+ skip_Comma(pp);
p = *pp;
CHKiRet(cstrConstruct(&pStrB));
--
2.23.0
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。