]> granicus.if.org Git - sudo/commitdiff
fix K&R compilation
authorTodd C. Miller <Todd.Miller@courtesan.com>
Wed, 11 Mar 2009 23:01:10 +0000 (23:01 +0000)
committerTodd C. Miller <Todd.Miller@courtesan.com>
Wed, 11 Mar 2009 23:01:10 +0000 (23:01 +0000)
audit.c
env.c

diff --git a/audit.c b/audit.c
index e2d48b98c3041b801170b373b6a17b141ac9d12f..59ea5262e6c9119c27f9252ea3841eb20c982b14 100644 (file)
--- a/audit.c
+++ b/audit.c
@@ -59,7 +59,7 @@ audit_failure(char **exec_args, char const *const fmt, ...)
 audit_failure(exec_args, fmt, va_alist)
     const char **exec_args;
     char const *const fmt;
-    va_dcl;
+    va_dcl
 #endif
 {
     va_list ap;
diff --git a/env.c b/env.c
index 0b508c31fe952d7a3b92a70dbb97b6bec227fbd1..0a86a03aa00be3c2f12463ac277feb5371880594 100644 (file)
--- a/env.c
+++ b/env.c
@@ -369,7 +369,8 @@ int
 #ifdef PUTENV_CONST
 putenv(const char *string)
 #else
-putenv(char *string)
+putenv(string)
+    char *string;
 #endif
 {
     if (strchr(string, '=') == NULL) {