Clean up compilation warnings.

This commit is contained in:
Paul Traina 1995-08-23 05:19:00 +00:00
parent d9edc66fba
commit 881f591647
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=10178
5 changed files with 13 additions and 11 deletions

View File

@ -21,7 +21,7 @@
#ifndef lint
static char rcsid[] =
"@(#) $Header: print-nfs.c,v 1.41 94/06/12 14:35:15 leres Exp $ (LBL)";
"@(#) $Header: /home/ncvs/src/usr.sbin/tcpdump/tcpdump/print-nfs.c,v 1.3 1995/03/08 12:52:36 olah Exp $ (LBL)";
#endif
#include <sys/param.h>
@ -568,6 +568,9 @@ parserep(register const struct rpc_msg *rp, register int length)
#define T2CHECK(p, l) if ((u_char *)(p) > ((u_char *)snapend) - l) return(0)
#if defined(BSD) && (BSD >= 199103)
#define strerr strerror
#else
/*
* Not all systems have strerror().
*/
@ -575,15 +578,14 @@ static char *
strerr(int errno)
{
extern int sys_nerr;
#ifndef __FreeBSD__
/* Conflicts with declaration in <stdio.h> */
extern char *sys_errlist[];
#endif
if (errno < sys_nerr)
return (sys_errlist[errno]);
return (0);
}
#endif
static const u_int32 *
parsestatus(const u_int32 *dp)

View File

@ -18,9 +18,9 @@
* WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF
* MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
*/
#ifndef lint
#if !defined(lint) && !defined(__GNUC__)
static char rcsid[] =
"@(#)$Header: gwtm2secs.c,v 1.2 93/11/18 13:11:30 vern Exp $ (LBL)";
"@(#)$Header: /home/ncvs/src/usr.sbin/tcpdump/tcpslice/gwtm2secs.c,v 1.2 1995/03/08 12:53:38 olah Exp $ (LBL)";
#endif
/*

View File

@ -18,9 +18,9 @@
* WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF
* MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
*/
#ifndef lint
#if !defined(lint) && !defined(__GNUC__)
static char rcsid[] =
"@(#)$Header: search.c,v 1.8 93/11/18 13:11:51 vern Exp $ (LBL)";
"@(#)$Header: /home/ncvs/src/usr.sbin/tcpdump/tcpslice/search.c,v 1.2 1995/03/08 12:53:39 olah Exp $ (LBL)";
#endif
/*

View File

@ -18,11 +18,11 @@
* WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF
* MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
*/
#ifndef lint
#if !defined(lint) && !defined(__GNUC__)
char copyright[] =
"@(#) Copyright (c) 1987-1990 The Regents of the University of California.\nAll rights reserved.\n";
static char rcsid[] =
"@(#)$Header: tcpslice.c,v 1.13 93/11/18 13:12:02 vern Exp $ (LBL)";
"@(#)$Header: /home/ncvs/src/usr.sbin/tcpdump/tcpslice/tcpslice.c,v 1.2 1995/03/08 12:53:40 olah Exp $ (LBL)";
#endif
/*

View File

@ -19,9 +19,9 @@
* MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
*/
#ifndef lint
#if !defined(lint) && !defined(__GNUC__)
static char rcsid[] =
"@(#) $Header: util.c,v 1.2 93/11/18 13:11:07 vern Exp $ (LBL)";
"@(#) $Header: /home/ncvs/src/usr.sbin/tcpdump/tcpslice/util.c,v 1.1 1995/03/08 12:53:42 olah Exp $ (LBL)";
#endif
#include "tcpslice.h"