Add missing const to linux_audit_command()'s argv function argument.

This commit is contained in:
Todd C. Miller
2020-06-03 20:22:25 -06:00
parent 73c1b04306
commit b40551dc32
2 changed files with 4 additions and 3 deletions

View File

@@ -63,10 +63,11 @@ linux_audit_open(void)
} }
int int
linux_audit_command(char *argv[], int result) linux_audit_command(char *const argv[], int result)
{ {
int au_fd, rc = -1; int au_fd, rc = -1;
char *command, *cp, **av; char *command, *cp;
char * const *av;
size_t size, n; size_t size, n;
debug_decl(linux_audit_command, SUDOERS_DEBUG_AUDIT); debug_decl(linux_audit_command, SUDOERS_DEBUG_AUDIT);

View File

@@ -19,6 +19,6 @@
#ifndef SUDOERS_LINUX_AUDIT_H #ifndef SUDOERS_LINUX_AUDIT_H
#define SUDOERS_LINUX_AUDIT_H #define SUDOERS_LINUX_AUDIT_H
int linux_audit_command(char *argv[], int result); int linux_audit_command(char *const argv[], int result);
#endif /* SUDOERS_LINUX_AUDIT_H */ #endif /* SUDOERS_LINUX_AUDIT_H */