Skip to content

Commit e534755

Browse files
Jiri Slabygregkh
authored andcommitted
tty_audit: make data of tty_audit_log() const
'data' are only read (passed down to audit_log_n_hex()), so they can be const -- the same what is expected in audit_log_n_hex(). Only a minor cleanup to be consistent. Signed-off-by: Jiri Slaby (SUSE) <jirislaby@kernel.org> Link: https://lore.kernel.org/r/20230621101611.10580-7-jirislaby@kernel.org Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
1 parent e64ed44 commit e534755

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

drivers/tty/tty_audit.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ static void tty_audit_buf_free(struct tty_audit_buf *buf)
5959
}
6060

6161
static void tty_audit_log(const char *description, dev_t dev,
62-
unsigned char *data, size_t size)
62+
const unsigned char *data, size_t size)
6363
{
6464
struct audit_buffer *ab;
6565
pid_t pid = task_pid_nr(current);

0 commit comments

Comments
 (0)