#include "redblack.h"
#ifndef lint
-static const char rcsid[] = "$Sudo$";
+__unused static const char rcsid[] = "$Sudo$";
#endif /* lint */
/*
#include "sudo.h"
#ifndef lint
-static const char rcsid[] = "$Sudo$";
+__unused static const char rcsid[] = "$Sudo$";
#endif /* lint */
/*
#include <afs/kautils.h>
#ifndef lint
-static const char rcsid[] = "$Sudo$";
+__unused static const char rcsid[] = "$Sudo$";
#endif /* lint */
int
#include "sudo_auth.h"
#ifndef lint
-static const char rcsid[] = "$Sudo$";
+__unused static const char rcsid[] = "$Sudo$";
#endif /* lint */
int
#include "sudo_auth.h"
#ifndef lint
-static const char rcsid[] = "$Sudo$";
+__unused static const char rcsid[] = "$Sudo$";
#endif /* lint */
extern char *login_style; /* from sudo.c */
#include "sudo_auth.h"
#ifndef lint
-static const char rcsid[] = "$Sudo$";
+__unused static const char rcsid[] = "$Sudo$";
#endif /* lint */
static int check_dce_status __P((error_status_t, char *));
#include "sudo_auth.h"
#ifndef lint
-static const char rcsid[] = "$Sudo$";
+__unused static const char rcsid[] = "$Sudo$";
#endif /* lint */
int
#include "sudo_auth.h"
#ifndef lint
-static const char rcsid[] = "$Sudo$";
+__unused static const char rcsid[] = "$Sudo$";
#endif /* lint */
int
#include "sudo_auth.h"
#ifndef lint
-static const char rcsid[] = "$Sudo$";
+__unused static const char rcsid[] = "$Sudo$";
#endif /* lint */
#ifdef HAVE_HEIMDAL
#endif
#ifndef lint
-static const char rcsid[] = "$Sudo$";
+__unused static const char rcsid[] = "$Sudo$";
#endif /* lint */
static int sudo_conv __P((int, PAM_CONST struct pam_message **,
#include "sudo_auth.h"
#ifndef lint
-static const char rcsid[] = "$Sudo$";
+__unused static const char rcsid[] = "$Sudo$";
#endif /* lint */
#define DESLEN 13
#include "sudo_auth.h"
#ifndef lint
-static const char rcsid[] = "$Sudo$";
+__unused static const char rcsid[] = "$Sudo$";
#endif /* lint */
int
#include "sudo_auth.h"
#ifndef lint
-static const char rcsid[] = "$Sudo$";
+__unused static const char rcsid[] = "$Sudo$";
#endif /* lint */
int
#include "sudo_auth.h"
#ifndef lint
-static const char rcsid[] = "$Sudo$";
+__unused static const char rcsid[] = "$Sudo$";
#endif /* lint */
union config_record configure;
#include "sudo_auth.h"
#ifndef lint
-static const char rcsid[] = "$Sudo$";
+__unused static const char rcsid[] = "$Sudo$";
#endif /* lint */
/*
#include "sudo_auth.h"
#ifndef lint
-static const char rcsid[] = "$Sudo$";
+__unused static const char rcsid[] = "$Sudo$";
#endif /* lint */
static int sudo_collect __P((int, int, uchar_t *, int, prompt_t *));
#include "insults.h"
#ifndef lint
-static const char rcsid[] = "$Sudo$";
+__unused static const char rcsid[] = "$Sudo$";
#endif /* lint */
sudo_auth auth_switch[] = {
#include "sudo.h"
#ifndef lint
-static const char rcsid[] = "$Sudo$";
+__unused static const char rcsid[] = "$Sudo$";
#endif /* lint */
/* Status codes for timestamp_status() */
#include "sudo.h"
#ifndef lint
-static const char rcsid[] = "$Sudo$";
+__unused static const char rcsid[] = "$Sudo$";
#endif /* lint */
/*
/* Define away __attribute__ for non-gcc or old gcc */
#if !defined(__GNUC__) || __GNUC__ < 2 || __GNUC__ == 2 && __GNUC_MINOR__ < 5
-#define __attribute__(x)
+# define __attribute__(x)
+#endif
+
+/* For silencing gcc warnings about rcsids */
+#ifndef __unused
+# define __unused __attribute__((__unused__))
#endif
/*
#include <gram.h>
#ifndef lint
-static const char rcsid[] = "$Sudo$";
+__unused static const char rcsid[] = "$Sudo$";
#endif /* lint */
/*
#include "sudo.h"
#ifndef lint
-static const char rcsid[] = "$Sudo$";
+__unused static const char rcsid[] = "$Sudo$";
#endif /* lint */
/*
#include "error.h"
#ifndef lint
-static const char rcsid[] = "$Sudo$";
+__unused static const char rcsid[] = "$Sudo$";
#endif /* lint */
static void _warning __P((int, const char *, va_list));
#include "sudo.h"
#ifndef lint
-static const char rcsid[] = "$Sudo$";
+__unused static const char rcsid[] = "$Sudo$";
#endif /* lint */
/*
#include "sudo.h"
#ifndef lint
-static const char rcsid[] = "$Sudo$";
+__unused static const char rcsid[] = "$Sudo$";
#endif /* lint */
/*
* SUCH DAMAGE.
*/
-#if defined(LIBC_SCCS) && !defined(lint)
-static char rcsid[] = "$OpenBSD: fnmatch.c,v 1.6 1998/03/19 00:29:59 millert Exp $";
-#endif /* LIBC_SCCS and not lint */
-
/*
* Function fnmatch() as specified in POSIX 1003.2-1992, section B.6.
* Compares a filename or pathname to a pattern.
#define RANGE_NOMATCH 0
#define RANGE_ERROR (-1)
+#if defined(LIBC_SCCS) && !defined(lint)
+__unused static const char rcsid[] = "$OpenBSD: fnmatch.c,v 1.6 1998/03/19 00:29:59 millert Exp $";
+#endif /* LIBC_SCCS and not lint */
+
static int rangematch __P((const char *, char, int, char **));
int
(dp->d_name[1] == '.' && dp->d_name[2] == '\0')))
#ifndef lint
-static const char rcsid[] = "$Sudo$";
+__unused static const char rcsid[] = "$Sudo$";
#endif /* lint */
char *
#include <string.h>
#include <config.h>
+#include <compat.h>
#ifndef lint
-static const char rcsid[] = "$Sudo$";
+__unused static const char rcsid[] = "$Sudo$";
#endif /* lint */
const char *
#include "sudo.h"
#ifndef lint
-static const char rcsid[] = "$Sudo$";
+__unused static const char rcsid[] = "$Sudo$";
#endif /* lint */
/*
#include <compat.h>
#ifndef lint
-static const char rcsid[] = "$Sudo$";
+__unused static const char rcsid[] = "$Sudo$";
#endif /* lint */
/*
#include "sudo.h"
#ifndef lint
-static const char rcsid[] = "$Sudo$";
+__unused static const char rcsid[] = "$Sudo$";
#endif /* lint */
/*
#include "parse.h"
#ifndef lint
-static const char rcsid[] = "$Sudo$";
+__unused static const char rcsid[] = "$Sudo$";
#endif /* lint */
/*
#include "parse.h"
#ifndef lint
-static const char rcsid[] = "$Sudo$";
+__unused static const char rcsid[] = "$Sudo$";
#endif /* lint */
/*
#include "interfaces.h"
#ifndef lint
-static const char rcsid[] = "$Sudo$";
+__unused static const char rcsid[] = "$Sudo$";
#endif /* lint */
#include "parse.h"
#ifndef lint
-static const char rcsid[] = "$Sudo$";
+__unused static const char rcsid[] = "$Sudo$";
#endif /* lint */
/* LDAP code below */
#include "sudo.h"
#ifndef lint
-static const char rcsid[] = "$Sudo$";
+__unused static const char rcsid[] = "$Sudo$";
#endif /* lint */
static void do_syslog __P((int, char *));
#endif /* HAVE_EXTENDED_GLOB */
#ifndef lint
-static const char rcsid[] = "$Sudo$";
+__unused static const char rcsid[] = "$Sudo$";
#endif /* lint */
/*
#include "mon_systrace.h"
#ifndef lint
-static const char rcsid[] = "$Sudo$";
+__unused static const char rcsid[] = "$Sudo$";
#endif /* lint */
/*
#include <gram.h>
#ifndef lint
-static const char rcsid[] = "$Sudo$";
+__unused static const char rcsid[] = "$Sudo$";
#endif /* lint */
/*
#include "redblack.h"
#ifndef lint
-static const char rcsid[] = "$Sudo$";
+__unused static const char rcsid[] = "$Sudo$";
#endif /* lint */
#ifdef MYPW
#include "sudo.h"
#ifndef lint
-static const char rcsid[] = "$Sudo$";
+__unused static const char rcsid[] = "$Sudo$";
#endif /* lint */
#ifdef __TANDEM
#include <compat.h>
#ifndef lint
-static const char rcsid[] = "$Sudo$";
+__unused static const char rcsid[] = "$Sudo$";
#endif /* lint */
int
#include "compat.h"
#ifndef lint
-static const char rcsid[] = "$Sudo$";
+__unused static const char rcsid[] = "$Sudo$";
#endif /* lint */
static int xxxprintf __P((char **, size_t, int, const char *, va_list));
* OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
-#include <config.h>
#include <sys/types.h>
+#include <config.h>
+#include <compat.h>
#ifndef lint
-static const char rcsid[] = "$Sudo$";
+__unused static const char rcsid[] = "$Sudo$";
#endif /* lint */
/*
#include <errno.h>
#include <config.h>
+#include <compat.h>
#ifndef lint
-static const char rcsid[] = "$Sudo$";
+__unused static const char rcsid[] = "$Sudo$";
#endif /* lint */
/*
#include <string.h>
#include <config.h>
+#include <compat.h>
#ifndef lint
-static const char rcsid[] = "$Sudo$";
+__unused static const char rcsid[] = "$Sudo$";
#endif /* lint */
#include <sys/types.h>
#include <config.h>
+#include <compat.h>
#ifndef lint
-static const char rcsid[] = "$Sudo$";
+__unused static const char rcsid[] = "$Sudo$";
#endif /* lint */
/*
#include "version.h"
#ifndef lint
-static const char rcsid[] = "$Sudo$";
+__unused static const char rcsid[] = "$Sudo$";
#endif /* lint */
/*
#include "sudo.h"
#ifndef lint
-static const char rcsid[] = "$Sudo$";
+__unused static const char rcsid[] = "$Sudo$";
#endif /* lint */
extern sigaction_t saved_sa_int, saved_sa_quit, saved_sa_tstp, saved_sa_chld;
* OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
-#include <config.h>
-
#include <errno.h>
+#include <config.h>
+#include <compat.h>
+
#ifndef lint
-static const char rcsid[] = "$Sudo$";
+__unused static const char rcsid[] = "$Sudo$";
#endif /* lint */
/*
#endif /* HAVE_FNMATCH */
#ifndef lint
-static const char rcsid[] = "$Sudo$";
+__unused static const char rcsid[] = "$Sudo$";
#endif /* lint */
#include "sudo.h"
#ifndef lint
-static const char rcsid[] = "$Sudo$";
+__unused static const char rcsid[] = "$Sudo$";
#endif /* lint */
#ifndef TCSASOFT
#include <gram.h>
#ifndef lint
-static const char rcsid[] = "$Sudo$";
+__unused static const char rcsid[] = "$Sudo$";
#endif /* lint */
extern YYSTYPE yylval;
#include <gram.h>
#ifndef lint
-static const char rcsid[] = "$Sudo$";
+__unused static const char rcsid[] = "$Sudo$";
#endif /* lint */
extern YYSTYPE yylval;
#endif
#include <config.h>
+#include <compat.h>
#ifdef HAVE_UTIME_H
# include <utime.h>
#endif
#ifndef lint
-static const char rcsid[] = "$Sudo$";
+__unused static const char rcsid[] = "$Sudo$";
#endif /* lint */
#ifndef HAVE_UTIMES
#include "version.h"
#ifndef lint
-static const char rcsid[] = "$Sudo$";
+__unused static const char rcsid[] = "$Sudo$";
#endif /* lint */
struct sudoersfile {
#include <sys/types.h>
#include <config.h>
+#include <compat.h>
#ifndef lint
-static const char rcsid[] = "$Sudo$";
+__unused static const char rcsid[] = "$Sudo$";
#endif /* lint */
/*