From 51f401fa348852fd39be09a6cd940ea6752d2cfb Mon Sep 17 00:00:00 2001 From: "Todd C. Miller" Date: Fri, 19 Nov 2010 12:58:03 -0500 Subject: [PATCH] Add prototype for cleanup() --- plugins/sudoers/testsudoers.c | 1 + plugins/sudoers/visudo.c | 2 ++ 2 files changed, 3 insertions(+) diff --git a/plugins/sudoers/testsudoers.c b/plugins/sudoers/testsudoers.c index c66298e10..f7e9f2cba 100644 --- a/plugins/sudoers/testsudoers.c +++ b/plugins/sudoers/testsudoers.c @@ -81,6 +81,7 @@ void print_userspecs(void); void usage(void) __attribute__((__noreturn__)); void set_runasgr(char *); void set_runaspw(char *); +void cleanup(int); static int testsudoers_printf(int msg_type, const char *fmt, ...); extern void setgrfile(const char *); diff --git a/plugins/sudoers/visudo.c b/plugins/sudoers/visudo.c index 0262e9cee..cf97ef6ff 100644 --- a/plugins/sudoers/visudo.c +++ b/plugins/sudoers/visudo.c @@ -113,6 +113,8 @@ static void print_undefined(char *name, int, int, int); static void setup_signals(void); static void usage(void) __attribute__((__noreturn__)); +void cleanup(int); + extern void yyerror(const char *); extern void yyrestart(FILE *); -- 2.40.0