added const in hawk_rtx_isnilval()

This commit is contained in:
2023-06-29 00:01:54 +09:00
parent 2b702825ef
commit 139808dda7
4 changed files with 13 additions and 6 deletions

View File

@ -123,7 +123,8 @@ typedef enum syslog_type_t syslog_type_t;
enum syslog_type_t
{
SYSLOG_LOCAL,
SYSLOG_REMOTE
SYSLOG_DEVLOG,
SYSLOG_REMOTE,
};
struct mod_ctx_t
@ -4605,8 +4606,14 @@ static int fnc_openlog (hawk_rtx_t* rtx, const hawk_fnc_info_t* fi)
}
else if (hawk_comp_oocstr_limited(ident, HAWK_T("local://"), 8, 0) == 0)
{
/* "local://syslog-identifier" */
/* local://syslog-identifier */
actual_ident = ident + 8;
}
else if (hawk_comp_oocstr_limited(ident, HAWK_T("devlog://"), 9, 0) == 0)
{
/* devlog://syslog-identifier */
actual_ident = ident + 9;
log_type = SYSLOG_DEVLOG;
}
else
{