changed filename in cmd_file_read to const char * (check_apt warning)

This commit is contained in:
Andreas Baumann 2025-05-09 10:49:02 +02:00
parent 22366b6958
commit ec47bbbda6
2 changed files with 2 additions and 2 deletions

View file

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

View file

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