diff options
author | Artjoms Rimdjonoks <artjoms.rimdjonoks@zabbix.com> | 2021-09-09 11:59:57 +0300 |
---|---|---|
committer | Artjoms Rimdjonoks <artjoms.rimdjonoks@zabbix.com> | 2021-09-09 12:00:16 +0300 |
commit | d881c91f95b6d680db562c863368dc61c89b895f (patch) | |
tree | 40036b3864eed0768027b5aaa379928cfc4c5db9 /src/libs/zbxaudit/audit.c | |
parent | 011883a1cdd48c05c77f2d9572357296bff78100 (diff) |
........S. [ZBXNEXT-6855] fixed various review comments
Diffstat (limited to 'src/libs/zbxaudit/audit.c')
-rw-r--r-- | src/libs/zbxaudit/audit.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/libs/zbxaudit/audit.c b/src/libs/zbxaudit/audit.c index 714c3a9b903..61b87afe9e0 100644 --- a/src/libs/zbxaudit/audit.c +++ b/src/libs/zbxaudit/audit.c @@ -36,13 +36,12 @@ zbx_hashset_t *zbx_get_audit_hashset(void) return &zbx_audit; } -zbx_audit_entry_t *zbx_audit_entry_init(zbx_uint64_t triggerid, const char *name, int audit_action, - int resource_type) +zbx_audit_entry_t *zbx_audit_entry_init(zbx_uint64_t id, const char *name, int audit_action, int resource_type) { zbx_audit_entry_t *audit_entry; audit_entry = (zbx_audit_entry_t*)zbx_malloc(NULL, sizeof(zbx_audit_entry_t)); - audit_entry->id = triggerid; + audit_entry->id = id; audit_entry->name = zbx_strdup(NULL, name); audit_entry->audit_action = audit_action; audit_entry->resource_type = resource_type; |