lib: properly name function to set summary

This commit is contained in:
Lorenz Kästle 2026-04-17 23:16:51 +02:00
parent 1eace3a997
commit 522dfca8ca
2 changed files with 2 additions and 2 deletions

View file

@ -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

View file

@ -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);