mirror of
https://git.hardenedbsd.org/hardenedbsd/HardenedBSD.git
synced 2024-12-25 12:02:01 +01:00
Clean up compilation warnings.
This commit is contained in:
parent
d9edc66fba
commit
881f591647
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=10178
@ -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)
|
||||
|
@ -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
|
||||
|
||||
/*
|
||||
|
@ -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
|
||||
|
||||
/*
|
||||
|
@ -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
|
||||
|
||||
/*
|
||||
|
@ -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"
|
||||
|
Loading…
Reference in New Issue
Block a user