mirror of
https://github.com/monitoring-plugins/monitoring-plugins.git
synced 2026-05-21 01:45:14 -04:00
lib: properly name function to set summary
This commit is contained in:
parent
1eace3a997
commit
522dfca8ca
2 changed files with 2 additions and 2 deletions
|
|
@ -164,7 +164,7 @@ int mp_add_subcheck_to_subcheck(mp_subcheck check[static 1], mp_subcheck subchec
|
|||
* Add a manual summary to a mp_check object, effectively replacing
|
||||
* the autogenerated one
|
||||
*/
|
||||
void mp_add_summary(mp_check check[static 1], char *summary) { check->summary = summary; }
|
||||
void mp_set_summary(mp_check check[static 1], char *summary) { check->summary = strdup(summary); }
|
||||
|
||||
/*
|
||||
* Generate the summary string of a mp_check object based on its subchecks
|
||||
|
|
|
|||
|
|
@ -87,7 +87,7 @@ int mp_add_subcheck_to_subcheck(mp_subcheck check[static 1], mp_subcheck);
|
|||
|
||||
void mp_add_perfdata_to_subcheck(mp_subcheck check[static 1], mp_perfdata);
|
||||
|
||||
void mp_add_summary(mp_check check[static 1], char *summary);
|
||||
void mp_set_summary(mp_check check[static 1], char *summary);
|
||||
|
||||
mp_state_enum mp_compute_check_state(mp_check);
|
||||
mp_state_enum mp_compute_subcheck_state(mp_subcheck);
|
||||
|
|
|
|||
Loading…
Reference in a new issue