Add missing const to linux_audit_command()'s argv function argument.
This commit is contained in:
@@ -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);
|
||||||
|
|
||||||
|
@@ -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 */
|
||||||
|
Reference in New Issue
Block a user