From: Todd C. Miller Date: Fri, 4 Jun 2010 13:10:05 +0000 (-0400) Subject: Add missing const to I/O log action function X-Git-Tag: SUDO_1_8_0~533 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=3fbd8347837f6e875eb40381d456d10616ec9475;p=sudo Add missing const to I/O log action function --- diff --git a/src/exec.c b/src/exec.c index 4e013b874..f42755e40 100644 --- a/src/exec.c +++ b/src/exec.c @@ -103,7 +103,7 @@ struct io_buffer { int off; /* write position (how much already consumed) */ int rfd; /* reader (producer) */ int wfd; /* writer (consumer) */ - int (*action)(char *buf, unsigned int len); + int (*action)(const char *buf, unsigned int len); char buf[16 * 1024]; }; @@ -412,7 +412,7 @@ terminate_child(pid_t pid, int use_pgrp) } static struct io_buffer * -io_buf_new(int rfd, int wfd, int (*action)(char *, unsigned int), +io_buf_new(int rfd, int wfd, int (*action)(const char *, unsigned int), struct io_buffer *head) { struct io_buffer *iob;