fix arguments to tracing functions and/or cast, to avoid warnings.
This commit is contained in:
parent
53f540575f
commit
2fe1f93ac5
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: input.c,v 1.10 1995/03/21 14:05:02 mycroft Exp $ */
|
||||
/* $NetBSD: input.c,v 1.11 1995/04/24 13:24:30 cgd Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1983, 1988, 1993
|
||||
|
@ -37,7 +37,7 @@
|
|||
#if 0
|
||||
static char sccsid[] = "@(#)input.c 8.1 (Berkeley) 6/5/93";
|
||||
#else
|
||||
static char rcsid[] = "$NetBSD: input.c,v 1.10 1995/03/21 14:05:02 mycroft Exp $";
|
||||
static char rcsid[] = "$NetBSD: input.c,v 1.11 1995/04/24 13:24:30 cgd Exp $";
|
||||
#endif
|
||||
#endif /* not lint */
|
||||
|
||||
|
@ -65,7 +65,7 @@ rip_input(from, rip, size)
|
|||
static struct sockaddr badfrom, badfrom2;
|
||||
|
||||
ifp = 0;
|
||||
TRACE_INPUT(ifp, (struct sockaddr_in *)from, (char *)rip, size);
|
||||
TRACE_INPUT(ifp, from, (char *)rip, size);
|
||||
if (from->sa_family >= af_max ||
|
||||
(afp = &afswitch[from->sa_family])->af_hash == (int (*)())0) {
|
||||
syslog(LOG_INFO,
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: startup.c,v 1.11 1995/03/18 15:00:40 cgd Exp $ */
|
||||
/* $NetBSD: startup.c,v 1.12 1995/04/24 13:24:32 cgd Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1983, 1988, 1993
|
||||
|
@ -37,7 +37,7 @@
|
|||
#if 0
|
||||
static char sccsid[] = "@(#)startup.c 8.1 (Berkeley) 6/5/93";
|
||||
#else
|
||||
static char rcsid[] = "$NetBSD: startup.c,v 1.11 1995/03/18 15:00:40 cgd Exp $";
|
||||
static char rcsid[] = "$NetBSD: startup.c,v 1.12 1995/04/24 13:24:32 cgd Exp $";
|
||||
#endif
|
||||
#endif /* not lint */
|
||||
|
||||
|
@ -441,7 +441,9 @@ gwkludge()
|
|||
* to prevent overriding them
|
||||
* with something else.
|
||||
*/
|
||||
rtadd(&dst, &gate, metric, RTS_EXTERNAL|RTS_PASSIVE);
|
||||
rtadd((struct sockaddr *)&dst,
|
||||
(struct sockaddr *)&gate, metric,
|
||||
RTS_EXTERNAL|RTS_PASSIVE);
|
||||
continue;
|
||||
}
|
||||
/* assume no duplicate entries */
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: trace.c,v 1.10 1995/03/18 15:00:47 cgd Exp $ */
|
||||
/* $NetBSD: trace.c,v 1.11 1995/04/24 13:24:34 cgd Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1983, 1988, 1993
|
||||
|
@ -37,7 +37,7 @@
|
|||
#if 0
|
||||
static char sccsid[] = "@(#)trace.c 8.1 (Berkeley) 6/5/93";
|
||||
#else
|
||||
static char rcsid[] = "$NetBSD: trace.c,v 1.10 1995/03/18 15:00:47 cgd Exp $";
|
||||
static char rcsid[] = "$NetBSD: trace.c,v 1.11 1995/04/24 13:24:34 cgd Exp $";
|
||||
#endif
|
||||
#endif /* not lint */
|
||||
|
||||
|
@ -364,8 +364,8 @@ dumptrace(fd, dir, ifd)
|
|||
t = ifd->ifd_records;
|
||||
if (t->ift_size == 0)
|
||||
continue;
|
||||
dumppacket(fd, dir, &t->ift_who, t->ift_packet, t->ift_size,
|
||||
&t->ift_stamp);
|
||||
dumppacket(fd, dir, (struct sockaddr_in *)&t->ift_who,
|
||||
t->ift_packet, t->ift_size, &t->ift_stamp);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: trace.h,v 1.6 1995/03/18 15:00:48 cgd Exp $ */
|
||||
/* $NetBSD: trace.h,v 1.7 1995/04/24 13:24:35 cgd Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1983, 1988, 1993
|
||||
|
@ -85,14 +85,16 @@ FILE *ftrace; /* output trace file */
|
|||
ifp = if_iflookup(src); \
|
||||
if (ifp) \
|
||||
trace(&ifp->int_input, src, pack, size, \
|
||||
ntohl(ifp->int_metric)); \
|
||||
ntohl(ifp->int_metric)); \
|
||||
} \
|
||||
if (tracepackets) \
|
||||
dumppacket(ftrace, "from", src, pack, size, &now); \
|
||||
dumppacket(ftrace, "from", (struct sockaddr_in *)src, pack, \
|
||||
size, &now); \
|
||||
}
|
||||
#define TRACE_OUTPUT(ifp, dst, size) { \
|
||||
if (tracehistory && ifp) \
|
||||
trace(&ifp->int_output, dst, packet, size, ifp->int_metric); \
|
||||
if (tracepackets) \
|
||||
dumppacket(ftrace, "to", dst, packet, size, &now); \
|
||||
dumppacket(ftrace, "to", (struct sockaddr_in *)dst, packet, \
|
||||
size, &now); \
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue