added const in hawk_rtx_isnilval()
This commit is contained in:
parent
2b702825ef
commit
139808dda7
@ -2761,7 +2761,7 @@ HAWK_EXPORT int hawk_rtx_truncrec (
|
||||
*/
|
||||
HAWK_EXPORT int hawk_rtx_isnilval (
|
||||
hawk_rtx_t* rtx,
|
||||
hawk_val_t* val
|
||||
const hawk_val_t* val
|
||||
);
|
||||
|
||||
/**
|
||||
|
@ -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,9 +4606,15 @@ 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
|
||||
{
|
||||
actual_ident = ident;
|
||||
|
@ -477,7 +477,7 @@ hawk_val_t* hawk_get_nil_val (void)
|
||||
return (hawk_val_t*)&hawk_nil;
|
||||
}
|
||||
|
||||
int hawk_rtx_isnilval (hawk_rtx_t* rtx, hawk_val_t* val)
|
||||
int hawk_rtx_isnilval (hawk_rtx_t* rtx, const hawk_val_t* val)
|
||||
{
|
||||
return val == (hawk_val_t*)&hawk_nil || (HAWK_VTR_IS_POINTER(val) && val->v_type == HAWK_VAL_NIL);
|
||||
}
|
||||
|
@ -360,7 +360,7 @@ BEGIN {
|
||||
print "stmt preparation error - ", mysql::errmsg();
|
||||
}
|
||||
|
||||
result = mysql::stmt_execute(stmt, "%hawk%");
|
||||
result = mysql::stmt_execute(stmt, mysql::TYPE_STR, "%hawk%");
|
||||
if (result <= -1)
|
||||
{
|
||||
print "statement execution error - ", mysql::errmsg();
|
||||
|
Loading…
Reference in New Issue
Block a user