Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/netinet Oops, still need the call to va_arg() to advance...



details:   https://anonhg.NetBSD.org/src/rev/36fe9bf85e39
branches:  trunk
changeset: 538516:36fe9bf85e39
user:      simonb <simonb%NetBSD.org@localhost>
date:      Tue Oct 22 02:44:34 2002 +0000

description:
Oops, still need the call to va_arg() to advance the args pointer.

diffstat:

 sys/netinet/raw_ip.c |  5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diffs (26 lines):

diff -r 45e94131a581 -r 36fe9bf85e39 sys/netinet/raw_ip.c
--- a/sys/netinet/raw_ip.c      Tue Oct 22 02:34:47 2002 +0000
+++ b/sys/netinet/raw_ip.c      Tue Oct 22 02:44:34 2002 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: raw_ip.c,v 1.63 2002/10/22 02:34:47 simonb Exp $       */
+/*     $NetBSD: raw_ip.c,v 1.64 2002/10/22 02:44:34 simonb Exp $       */
 
 /*
  * Copyright (C) 1995, 1996, 1997, and 1998 WIDE Project.
@@ -65,7 +65,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: raw_ip.c,v 1.63 2002/10/22 02:34:47 simonb Exp $");
+__KERNEL_RCSID(0, "$NetBSD: raw_ip.c,v 1.64 2002/10/22 02:44:34 simonb Exp $");
 
 #include "opt_ipsec.h"
 #include "opt_mrouting.h"
@@ -149,6 +149,7 @@
        va_list ap;
 
        va_start(ap, m);
+       (void)va_arg(ap, int);          /* ignore value, advance ap */
        proto = va_arg(ap, int);
        va_end(ap);
 



Home | Main Index | Thread Index | Old Index