diff options
author | vkalintiris <vasilis@netdata.cloud> | 2021-04-23 16:16:40 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-04-23 16:16:40 +0300 |
commit | 7b6362767e71b09ad1604de45c754e798c7dd169 (patch) | |
tree | d35af2e563d0b47d38722f3613b3e6e33ab4e7a0 /health/health_log.c | |
parent | 3ec43de2167e3f9ad095bff05d7285e33e26cd69 (diff) |
Rename struct fields from class to classification. (#11019)
These fields made our headers incompatible with C++, because `class` is
a reserved keyword.
Diffstat (limited to 'health/health_log.c')
-rw-r--r-- | health/health_log.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/health/health_log.c b/health/health_log.c index 64e681bf83..de0a0883bf 100644 --- a/health/health_log.c +++ b/health/health_log.c @@ -146,7 +146,7 @@ inline void health_alarm_log_save(RRDHOST *host, ALARM_ENTRY *ae) { , ae->new_value , ae->old_value , (uint64_t)ae->last_repeat - , (ae->class)?ae->class:"Unknown" + , (ae->classification)?ae->classification:"Unknown" , (ae->component)?ae->component:"Unknown" , (ae->type)?ae->type:"Unknown" ) < 0)) @@ -369,9 +369,9 @@ static inline ssize_t health_alarm_log_read(RRDHOST *host, FILE *fp, const char ae->last_repeat = last_repeat; if (likely(entries > 28)) { - freez(ae->class); - ae->class = strdupz(pointers[28]); - if(!*ae->class) { freez(ae->class); ae->class = NULL; } + freez(ae->classification); + ae->classification = strdupz(pointers[28]); + if(!*ae->classification) { freez(ae->classification); ae->classification = NULL; } freez(ae->component); ae->component = strdupz(pointers[29]); @@ -491,7 +491,7 @@ inline ALARM_ENTRY* health_create_alarm_entry( ae->family = strdupz(family); if (class) - ae->class = strdupz(class); + ae->classification = strdupz(class); if (component) ae->component = strdupz(component); @@ -595,7 +595,7 @@ inline void health_alarm_log_free_one_nochecks_nounlink(ALARM_ENTRY *ae) { freez(ae->name); freez(ae->chart); freez(ae->family); - freez(ae->class); + freez(ae->classification); freez(ae->component); freez(ae->type); freez(ae->exec); |