mirror of
https://github.com/monitoring-plugins/monitoring-plugins.git
synced 2026-02-20 00:10:09 -05:00
changed filename in cmd_file_read to const char * (check_apt warning)
This commit is contained in:
parent
22366b6958
commit
ec47bbbda6
2 changed files with 2 additions and 2 deletions
|
|
@ -346,7 +346,7 @@ int cmd_run_array(char *const *argv, output *out, output *err, int flags) {
|
|||
return _cmd_close(fd);
|
||||
}
|
||||
|
||||
int cmd_file_read(char *filename, output *out, int flags) {
|
||||
int cmd_file_read(const char *filename, output *out, int flags) {
|
||||
int fd;
|
||||
if (out)
|
||||
memset(out, 0, sizeof(output));
|
||||
|
|
|
|||
|
|
@ -20,7 +20,7 @@ typedef struct output output;
|
|||
/** prototypes **/
|
||||
int cmd_run(const char *, output *, output *, int);
|
||||
int cmd_run_array(char *const *, output *, output *, int);
|
||||
int cmd_file_read(char *, output *, int);
|
||||
int cmd_file_read(const char *, output *, int);
|
||||
|
||||
/* only multi-threaded plugins need to bother with this */
|
||||
void cmd_init(void);
|
||||
|
|
|
|||
Loading…
Reference in a new issue