diff options
author | Andreas Baumann <mail@andreasbaumann.cc> | 2025-05-09 10:49:02 +0200 |
---|---|---|
committer | Andreas Baumann <mail@andreasbaumann.cc> | 2025-05-09 10:49:02 +0200 |
commit | ec47bbbda6b99f0efc1801a424812a4dd457f9b6 (patch) | |
tree | b12e5162207f94323448fd89e0e1ab3d97ef2703 /lib/utils_cmd.c | |
parent | 22366b6958ac43e2d6d2fe63a3e880e20c4ad981 (diff) | |
download | monitoring-plugins-ec47bbbda6b99f0efc1801a424812a4dd457f9b6.tar.gz |
changed filename in cmd_file_read to const char * (check_apt warning)
Diffstat (limited to 'lib/utils_cmd.c')
-rw-r--r-- | lib/utils_cmd.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/utils_cmd.c b/lib/utils_cmd.c index 18350ac0..9b222409 100644 --- a/lib/utils_cmd.c +++ b/lib/utils_cmd.c | |||
@@ -346,7 +346,7 @@ int cmd_run_array(char *const *argv, output *out, output *err, int flags) { | |||
346 | return _cmd_close(fd); | 346 | return _cmd_close(fd); |
347 | } | 347 | } |
348 | 348 | ||
349 | int cmd_file_read(char *filename, output *out, int flags) { | 349 | int cmd_file_read(const char *filename, output *out, int flags) { |
350 | int fd; | 350 | int fd; |
351 | if (out) | 351 | if (out) |
352 | memset(out, 0, sizeof(output)); | 352 | memset(out, 0, sizeof(output)); |