summaryrefslogtreecommitdiff
path: root/usr.sbin/tcpdump/print-l2tp.c
diff options
context:
space:
mode:
authorJonathan Gray <jsg@cvs.openbsd.org>2009-07-12 18:11:04 +0000
committerJonathan Gray <jsg@cvs.openbsd.org>2009-07-12 18:11:04 +0000
commitd49bab7fd24ec5f2b45027cb2563cf299230a2f0 (patch)
tree2b727e0720d46c4d0d1cd12ca9e3c6f279df04aa /usr.sbin/tcpdump/print-l2tp.c
parent4a5511c829421231e83dde272154ea0ab64c3011 (diff)
don't cast lvalue, no binary change.
Diffstat (limited to 'usr.sbin/tcpdump/print-l2tp.c')
-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);
}