From: Todd C. Miller Date: Sun, 22 Aug 1999 11:23:09 +0000 (+0000) Subject: Add some const in the K&R defs. This is safe since we define const away X-Git-Tag: SUDO_1_6_0~118 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=5922bfb58361b52362d719cdf6fcdd5a8922c611;p=sudo Add some const in the K&R defs. This is safe since we define const away if the compiler doesn't grok it. --- diff --git a/snprintf.c b/snprintf.c index 7ca7b1908..6b640dc3f 100644 --- a/snprintf.c +++ b/snprintf.c @@ -713,7 +713,7 @@ snprintf(char *str, size_t n, char const *fmt, ...) snprintf(str, n, fmt, va_alist) char *str; size_t n; - char *fmt; + char const *fmt; va_dcl #endif { @@ -750,7 +750,7 @@ asprintf(char **str, char const *fmt, ...) #else asprintf(str, fmt, va_alist) char **str; - char *fmt; + char const *fmt; va_dcl #endif {