summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjsg <jsg@openbsd.org>2009-07-12 18:11:03 +0000
committerjsg <jsg@openbsd.org>2009-07-12 18:11:03 +0000
commit81867b298b95b82a175418b21e6a929321801ea9 (patch)
tree27ad1235692379229268d9260654c6ed26a66ee7
parentdon't cast lvalues, no binary change. (diff)
downloadwireguard-openbsd-81867b298b95b82a175418b21e6a929321801ea9.tar.xz
wireguard-openbsd-81867b298b95b82a175418b21e6a929321801ea9.zip
don't cast lvalue, no binary change.
-rw-r--r--usr.sbin/tcpdump/print-l2tp.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.sbin/tcpdump/print-l2tp.c b/usr.sbin/tcpdump/print-l2tp.c
index 42499971458..15473c13207 100644
--- a/usr.sbin/tcpdump/print-l2tp.c
+++ b/usr.sbin/tcpdump/print-l2tp.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: print-l2tp.c,v 1.3 2007/10/07 16:41:05 deraadt Exp $ */
+/* $OpenBSD: print-l2tp.c,v 1.4 2009/07/12 18:11:03 jsg Exp $ */
/*
* Copyright (c) 1991, 1993, 1994, 1995, 1996, 1997
@@ -25,7 +25,7 @@
#ifndef lint
static const char rcsid[] =
- "@(#) $Id: print-l2tp.c,v 1.3 2007/10/07 16:41:05 deraadt Exp $";
+ "@(#) $Id: print-l2tp.c,v 1.4 2009/07/12 18:11:03 jsg Exp $";
#endif
#include <sys/types.h>
@@ -691,7 +691,7 @@ l2tp_print(const u_char *dat, u_int length)
if (flag_o) {
pad = ntohs(*ptr++);
- (u_char *)ptr += pad;
+ ptr = (u_char *)ptr + pad;
cnt += (2 + pad);
}