]> granicus.if.org Git - sudo/commitdiff
Add some const in the K&R defs. This is safe since we define const away
authorTodd C. Miller <Todd.Miller@courtesan.com>
Sun, 22 Aug 1999 11:23:09 +0000 (11:23 +0000)
committerTodd C. Miller <Todd.Miller@courtesan.com>
Sun, 22 Aug 1999 11:23:09 +0000 (11:23 +0000)
if the compiler doesn't grok it.

snprintf.c

index 7ca7b1908ae0e13e4c27157959ff77532d975e83..6b640dc3fe5a452a75d79ecf24ad1dd995d06a85 100644 (file)
@@ -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
 {