]> granicus.if.org Git - sudo/commitdiff
K&R compilation fixes
authorTodd C. Miller <Todd.Miller@courtesan.com>
Tue, 9 Dec 2008 20:55:50 +0000 (20:55 +0000)
committerTodd C. Miller <Todd.Miller@courtesan.com>
Tue, 9 Dec 2008 20:55:50 +0000 (20:55 +0000)
emul/charclass.h
glob.c
lbuf.c
tgetpass.c

index c73928228ba2cc121f95ab073c354c9e97732770..5b8bb05648d3509af2ba6311c2e4f3848afa9cee 100644 (file)
@@ -21,7 +21,7 @@
  */
 static struct cclass {
        const char *name;
-       int (*isctype)(int);
+       int (*isctype) __P((int));
 } cclasses[] = {
        { "alnum",      isalnum },
        { "alpha",      isalpha },
diff --git a/glob.c b/glob.c
index e911d27e03c19e98fdc7fb9cc4121e9a91230fde..46d883b085d86fd4d893241af63c4cd903403e2b 100644 (file)
--- a/glob.c
+++ b/glob.c
@@ -418,7 +418,10 @@ globtilde(pattern, patbuf, patbuf_len, pglob)
 }
 
 static int
-g_strncmp(const Char *s1, const char *s2, size_t n)
+g_strncmp(s1, s2, n)
+       const Char *s1;
+       const char *s2;
+       size_t n;
 {
        int rv = 0;
 
@@ -433,7 +436,9 @@ g_strncmp(const Char *s1, const char *s2, size_t n)
 }
 
 static int
-g_charclass(const Char **patternp, Char **bufnextp)
+g_charclass(patternp, bufnextp)
+       const Char **patternp;
+       Char **bufnextp;
 {
        const Char *pattern = *patternp + 1;
        Char *bufnext = *bufnextp;
diff --git a/lbuf.c b/lbuf.c
index 6d24ec51f0ab3ddf889fded02a85236d7e6468b0..2580e1730be4441754185fb94ba1e842e749dd67 100644 (file)
--- a/lbuf.c
+++ b/lbuf.c
@@ -106,7 +106,7 @@ void
 #ifdef __STDC__
 lbuf_append_quoted(struct lbuf *lbuf, const char *set, ...)
 #else
-lbuf_append_quoted(lbuf, va_alist)
+lbuf_append_quoted(lbuf, set, va_alist)
        struct lbuf *lbuf;
        const char *set;
        va_dcl
index dc51cf1b574ea97cd9ffd0555e40e5101a9d2e81..c8dacd6ffe4d545a5265d1a6e8b4cdbd71c7b56f 100644 (file)
@@ -115,7 +115,7 @@ static volatile sig_atomic_t signo;
 
 static void handler __P((int));
 static char *getln __P((int, char *, size_t));
-static char *sudo_askpass(const char *);
+static char *sudo_askpass __P((const char *));
 
 /*
  * Like getpass(3) but with timeout and echo flags.