From: Eero Tamminen Date: Fri, 15 Dec 2023 18:36:51 +0000 (+0100) Subject: irq plugin: Document the return value of `irq_strsplit`. X-Git-Tag: 6.0.0-rc0~36^2~3 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=3d3a3f8a5cad0eed4870779aa625b1bf16ecb774;p=thirdparty%2Fcollectd.git irq plugin: Document the return value of `irq_strsplit`. --- diff --git a/src/irq.c b/src/irq.c index 98733d7f6..7ab5c7cbf 100644 --- a/src/irq.c +++ b/src/irq.c @@ -69,8 +69,9 @@ static int irq_config(const char *key, const char *value) { } #if KERNEL_LINUX -/* irq_strsplit is a special split function for Linux' /proc/interrupts file. It - * uses two or more spaces to separate fields. */ +/* irq_strsplit is a special split function for Linux' /proc/interrupts file. + * It uses two or more spaces to separate fields. Returns number of parsed + * fields. */ static int irq_strsplit(char *string, char **fields, size_t fields_num) { for (size_t i = 0; i < fields_num; i++) { while (string[0] != 0 && isspace(string[0])) {