diff options
author | Gilbert Ramirez <gram@alumni.rice.edu> | 2001-03-13 21:34:28 +0000 |
---|---|---|
committer | Gilbert Ramirez <gram@alumni.rice.edu> | 2001-03-13 21:34:28 +0000 |
commit | 5664e5887f4da905f94035556eb232611796cee2 (patch) | |
tree | d7075be8e004cc316e2e87d695012482960173ae /packet-ntp.c | |
parent | d820905672fc2bbac7c609c1628e22dcbb3e2827 (diff) | |
download | wireshark-5664e5887f4da905f94035556eb232611796cee2.tar.gz wireshark-5664e5887f4da905f94035556eb232611796cee2.tar.bz2 wireshark-5664e5887f4da905f94035556eb232611796cee2.zip |
Make tvb_get_ptr() return 'const guint8*', and clean up all the
usages of tvb_get_ptr(). packet-ieee80211.c still has one bad usage,
in which it *does* modify the tvbuff's data.
svn path=/trunk/; revision=3128
Diffstat (limited to 'packet-ntp.c')
-rw-r--r-- | packet-ntp.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/packet-ntp.c b/packet-ntp.c index 387cc938cd..03e723edcd 100644 --- a/packet-ntp.c +++ b/packet-ntp.c @@ -2,7 +2,7 @@ * Routines for NTP packet dissection * Copyright 1999, Nathan Neulinger <nneul@umr.edu> * - * $Id: packet-ntp.c,v 1.25 2001/01/22 08:03:45 guy Exp $ + * $Id: packet-ntp.c,v 1.26 2001/03/13 21:34:23 gram Exp $ * * Ethereal - Network traffic analyzer * By Gerald Combs <gerald@zing.org> @@ -221,7 +221,7 @@ static gint ett_ntp_flags = -1; * returns pointer to filled buffer. */ static char * -ntp_fmt_ts(guint8 *reftime, char* buff) +ntp_fmt_ts(const guint8 *reftime, char* buff) { guint32 tempstmp, tempfrac; time_t temptime; @@ -260,11 +260,11 @@ dissect_ntp(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree) gint8 precision; double rootdelay; double rootdispersion; - guint8 *refid; - guint8 *reftime; - guint8 *org; - guint8 *rec; - guint8 *xmt; + const guint8 *refid; + const guint8 *reftime; + const guint8 *org; + const guint8 *rec; + const guint8 *xmt; gchar buff[NTP_TS_SIZE]; int i; |