summaryrefslogtreecommitdiffstats
path: root/plugins/check_mysql_query.c
diff options
context:
space:
mode:
authorDennis Ullrich <dennis.ullrich@plusserver.com>2025-11-27 16:24:56 +0100
committerDennis Ullrich <dennis.ullrich@plusserver.com>2025-11-27 16:43:56 +0100
commit052811414a7edcc6479895ddc169893e7740b28f (patch)
tree4e7f459a342d49752932eea4051c11ec63614b9b /plugins/check_mysql_query.c
parentcedfc166d42f4e89dddc1caa44e0655157d35a0a (diff)
downloadmonitoring-plugins-052811414a7edcc6479895ddc169893e7740b28f.tar.gz
Refactor DNS flag handling: replace output pointer pattern with structured return types and add documentation.
This refactors all helper functions related to DNS flag extraction and validation: - Introduce a new `flag_list` struct used as unified return type for functions producing multiple output values - Replace all functions using output pointers (`char ***`, `size_t *`) with functions returning `flag_list` - Update callers in `main()` and the flag validation logic - Add documentation comments describing purpose, inputs and outputs for all new helper functions - Consolidate memory handling through a single `free_flag_list()` helper - Apply clang-format This brings more clarity, avoids hidden output and aligns with the review request for cleaner functions input/output.
Diffstat (limited to 'plugins/check_mysql_query.c')
0 files changed, 0 insertions, 0 deletions