more -Wall

This commit is contained in:
Todd C. Miller
1998-11-18 04:16:13 +00:00
parent bbcd21287f
commit 62dba8f4d1
21 changed files with 83 additions and 92 deletions

View File

@@ -35,10 +35,6 @@
* Jeff Nieusma Thu Mar 21 22:39:07 MST 1991
*/
#ifndef lint
static const char rcsid[] = "$Id$";
#endif /* lint */
#include "config.h"
#include <stdio.h>
@@ -97,6 +93,9 @@ static const char rcsid[] = "$Id$";
#include "insults.h"
#include "version.h"
#ifndef lint
static const char rcsid[] = "$Id$";
#endif /* lint */
/*
* Prototypes for local functions

View File

@@ -25,10 +25,6 @@
* Spider Boardman Sep 26, 1998
*/
#ifndef lint
static const char rcsid[] = "$Id$";
#endif /* lint */
#include "config.h"
#ifdef HAVE_SIA
@@ -54,6 +50,10 @@ static const char rcsid[] = "$Id$";
#include "sudo.h"
#ifndef lint
static const char rcsid[] = "$Id$";
#endif /* lint */
/*
* Prototypes for local functions
*/

View File

@@ -28,10 +28,6 @@
* Todd C. Miller (millert@colorado.edu) Sat Mar 25 21:50:36 MST 1995
*/
#ifndef lint
static const char rcsid[] = "$Id$";
#endif /* lint */
#include "config.h"
#include <stdio.h>
@@ -72,7 +68,6 @@ extern char *strdup __P((const char *));
#endif /* HAVE_STRDUP */
#endif /* !STDC_HEADERS */
#ifndef _S_IFMT
#define _S_IFMT S_IFMT
#endif /* _S_IFMT */
@@ -80,6 +75,9 @@ extern char *strdup __P((const char *));
#define _S_IFLNK S_IFLNK
#endif /* _S_IFLNK */
#ifndef lint
static const char rcsid[] = "$Id$";
#endif /* lint */
/*******************************************************************
*

View File

@@ -31,10 +31,6 @@
* SUCH DAMAGE.
*/
#if defined(LIBC_SCCS) && !defined(lint)
static const char rcsid[] = "$OpenBSD: getcwd.c,v 1.5 1998/08/14 21:39:26 deraadt Exp $";
#endif /* LIBC_SCCS and not lint */
#include "config.h"
#include <sys/param.h>
@@ -80,6 +76,10 @@ static const char rcsid[] = "$OpenBSD: getcwd.c,v 1.5 1998/08/14 21:39:26 deraad
(dp->d_name[0] == '.' && (dp->d_name[1] == '\0' || \
(dp->d_name[1] == '.' && dp->d_name[2] == '\0')))
#if defined(LIBC_SCCS) && !defined(lint)
static const char rcsid[] = "$OpenBSD: getcwd.c,v 1.5 1998/08/14 21:39:26 deraadt Exp $";
#endif /* LIBC_SCCS and not lint */
char *
getcwd(pt, size)
char *pt;

View File

@@ -27,10 +27,6 @@
* Todd C. Miller Mon Nov 20 13:53:06 MST 1995
*/
#ifndef lint
static const char rcsid[] = "$Id$";
#endif /* lint */
#include "config.h"
#include <stdio.h>
@@ -73,6 +69,10 @@ static const char rcsid[] = "$Id$";
#include "sudo.h"
#ifndef lint
static const char rcsid[] = "$Id$";
#endif /* lint */
#ifndef STDC_HEADERS
#ifndef __GNUC__ /* gcc has its own malloc */
extern char *malloc __P((size_t));

View File

@@ -28,10 +28,6 @@
* Todd C. Miller (millert@colorado.edu) Sat Mar 25 21:58:17 MST 1995
*/
#ifndef lint
static const char rcsid[] = "$Id$";
#endif /* lint */
#include "config.h"
#include <stdio.h>
@@ -56,6 +52,9 @@ static const char rcsid[] = "$Id$";
extern int stat __P((const char *, struct stat *));
#endif /* !STDC_HEADERS */
#ifndef lint
static const char rcsid[] = "$Id$";
#endif /* lint */
/******************************************************************
*

View File

@@ -26,10 +26,6 @@
* Todd C. Miller Mon May 1 20:48:43 MDT 1995
*/
#ifndef lint
static const char rcsid[] = "$Id$";
#endif /* lint */
#include "config.h"
#include <stdio.h>
@@ -53,11 +49,7 @@ static const char rcsid[] = "$Id$";
#include <sys/types.h>
#include <sys/socket.h>
#include <sys/param.h>
#ifdef HAVE_SYS_SOCKIO_H
#include <sys/sockio.h>
#else
#include <sys/ioctl.h>
#endif /* HAVE_SYS_SOCKIO_H */
#ifdef _ISC
#include <sys/stream.h>
#include <sys/sioctl.h>
@@ -83,6 +75,10 @@ extern char *malloc __P((size_t));
extern char *realloc __P((VOID *, size_t));
#endif /* !STDC_HEADERS && !__GNUC__ */
#ifndef lint
static const char rcsid[] = "$Id$";
#endif /* lint */
/*
* Globals
*/

View File

@@ -36,10 +36,6 @@
* Jeff Nieusma Thu Mar 21 23:39:04 MST 1991
*/
#ifndef lint
static const char rcsid[] = "$Id$";
#endif /* lint */
#include "config.h"
#include <stdio.h>
@@ -70,6 +66,10 @@ static const char rcsid[] = "$Id$";
#include "sudo.h"
#ifndef lint
static const char rcsid[] = "$Id$";
#endif /* lint */
/*
* Prototypes for local functions
*/

View File

@@ -34,13 +34,6 @@
* SUCH DAMAGE.
*/
#if defined(LIBC_SCCS) && !defined(lint)
static char sccsid[] = "@(#)lsearch.c 8.1 (Berkeley) 6/4/93";
#endif /* LIBC_SCCS and not lint */
#ifndef lint
static const char rcsid[] = "$Id$";
#endif /* lint */
#include "config.h"
#include <stdio.h>
@@ -52,6 +45,12 @@ static const char rcsid[] = "$Id$";
#include "compat.h"
#include "emul/search.h"
#if defined(LIBC_SCCS) && !defined(lint)
static const char sccsid[] = "@(#)lsearch.c 8.1 (Berkeley) 6/4/93";
#endif /* LIBC_SCCS and not lint */
#ifndef lint
static const char rcsid[] = "$Id$";
#endif /* lint */
typedef int (*cmp_fn_t) __P((const VOID *, const VOID *));
static VOID *linear_base __P((const VOID *, const VOID *, size_t *, size_t,

View File

@@ -24,10 +24,6 @@
* Chris Jepeway <jepeway@cs.utk.edu>
*/
#ifndef lint
static const char rcsid[] = "$Id$";
#endif /* lint */
#include "config.h"
#include <stdio.h>
@@ -84,6 +80,10 @@ static const char rcsid[] = "$Id$";
#include "sudo.h"
#ifndef lint
static const char rcsid[] = "$Id$";
#endif /* lint */
/*
* Globals
*/

View File

@@ -25,10 +25,6 @@
* Chris Jepeway <jepeway@cs.utk.edu>
*/
#ifndef lint
static const char rcsid[] = "$Id$";
#endif /* lint */
#include "config.h"
#ifdef STDC_HEADERS
@@ -50,6 +46,10 @@ static const char rcsid[] = "$Id$";
#include "sudo.h"
#include "sudo.tab.h"
#ifndef lint
static const char rcsid[] = "$Id$";
#endif /* lint */
#undef yywrap /* guard against a yywrap macro */
extern YYSTYPE yylval;

View File

@@ -26,10 +26,6 @@
* Chris Jepeway <jepeway@cs.utk.edu>
*/
#ifndef lint
static const char rcsid[] = "$Id$";
#endif /* lint */
#include "config.h"
#include <stdio.h>
#ifdef STDC_HEADERS
@@ -65,6 +61,10 @@ static const char rcsid[] = "$Id$";
#define strcasecmp(a,b) strcmp(a,b)
#endif /* !HAVE_STRCASECMP */
#ifndef lint
static const char rcsid[] = "$Id$";
#endif /* lint */
/*
* Globals
*/

View File

@@ -24,10 +24,6 @@
* Todd C. Miller (millert@colorado.edu) Sun Aug 7 20:30:17 MDT 1994
*/
#ifndef lint
static const char rcsid[] = "$Id$";
#endif /* lint */
#include "config.h"
#include <stdio.h>
@@ -50,6 +46,10 @@ static const char rcsid[] = "$Id$";
extern char *malloc __P((size_t));
#endif /* !STDC_HEADERS && !gcc */
#ifndef lint
static const char rcsid[] = "$Id$";
#endif /* lint */
/******************************************************************
*

View File

@@ -24,10 +24,6 @@
* Todd C. Miller (millert@colorado.edu) Sat Oct 17 14:42:44 MDT 1998
*/
#ifndef lint
static const char rcsid[] = "$Id$";
#endif /* lint */
#include "config.h"
#ifdef HAVE_GETPRPWNAM
@@ -58,6 +54,10 @@ static const char rcsid[] = "$Id$";
#include "sudo.h"
#ifndef lint
static const char rcsid[] = "$Id$";
#endif /* lint */
/********************************************************************
*

View File

@@ -32,10 +32,6 @@
* Jeff Nieusma Thu Mar 21 23:11:23 MST 1991
*/
#ifndef lint
static const char rcsid[] = "$Id$";
#endif /* lint */
#include "config.h"
#include <stdio.h>
@@ -61,6 +57,10 @@ extern char *malloc __P((size_t));
extern char *strcpy __P((char *, const char *));
#endif /* !STDC_HEADERS */
#ifndef lint
static const char rcsid[] = "$Id$";
#endif /* lint */
/******************************************************************
*

8
sudo.c
View File

@@ -50,10 +50,6 @@
* Todd Miller <Todd.Miller@courtesan.com>
*/
#ifndef lint
static const char rcsid[] = "$Id$";
#endif /* lint */
#define MAIN
#include "config.h"
@@ -99,6 +95,10 @@ extern char *strdup __P((const char *));
extern char *getenv __P((char *));
#endif /* STDC_HEADERS */
#ifndef lint
static const char rcsid[] = "$Id$";
#endif /* lint */
/*
* Local type declarations

View File

@@ -25,10 +25,6 @@
* Todd C. Miller (millert@colorado.edu) Fri Jun 3 18:32:19 MDT 1994
*/
#ifndef lint
static const char rcsid[] = "$Id$";
#endif /* lint */
#include "config.h"
#include <stdio.h>
@@ -56,6 +52,10 @@ extern int setenv __P((char *, char *, int));
#endif /* HAVE_SETENV */
#endif /* !STDC_HEADERS */
#ifndef lint
static const char rcsid[] = "$Id$";
#endif /* lint */
/**********************************************************************
*

View File

@@ -24,10 +24,6 @@
* Chris Jepeway <jepeway@cs.utk.edu>
*/
#ifndef lint
static const char rcsid[] = "$Id$";
#endif /* lint */
#include "config.h"
#include <stdio.h>
@@ -68,6 +64,10 @@ static const char rcsid[] = "$Id$";
#include "sudo.h"
#ifndef lint
static const char rcsid[] = "$Id$";
#endif /* lint */
/*
* Globals
*/

View File

@@ -26,10 +26,6 @@
* Todd C. Miller Sun Jun 5 17:22:31 MDT 1994
*/
#ifndef lint
static const char rcsid[] = "$Id$";
#endif /* lint */
#include "config.h"
#include <stdio.h>
@@ -85,6 +81,10 @@ static const char rcsid[] = "$Id$";
#define TCSASOFT 0
#endif /* TCSASOFT */
#ifndef lint
static const char rcsid[] = "$Id$";
#endif /* lint */
/******************************************************************
*

View File

@@ -26,10 +26,6 @@
* Todd C. Miller (millert@colorado.edu) Sat Jun 17 16:42:41 MDT 1995
*/
#ifndef lint
static const char rcsid[] = "$Id$";
#endif /* lint */
#include "config.h"
#include <stdio.h>
@@ -43,6 +39,10 @@ static const char rcsid[] = "$Id$";
#include "compat.h"
#include "emul/utime.h"
#ifndef lint
static const char rcsid[] = "$Id$";
#endif /* lint */
/******************************************************************
*

View File

@@ -25,10 +25,6 @@
* Todd C. Miller (millert@colorado.edu) Sat Mar 25 21:50:36 MST 1995
*/
#ifndef lint
static const char rcsid[] = "$Id$";
#endif /* lint */
#include "config.h"
#include <stdio.h>
@@ -73,6 +69,10 @@ extern int stat __P((const char *, struct stat *));
#define SA_RESETHAND 0
#endif /* POSIX_SIGNALS && !SA_RESETHAND */
#ifndef lint
static const char rcsid[] = "$Id$";
#endif /* lint */
/*
* Function prototypes
*/