aboutsummaryrefslogtreecommitdiffstats
path: root/wiretap/netxray.c
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2013-12-30 22:14:45 +0000
committerGuy Harris <guy@alum.mit.edu>2013-12-30 22:14:45 +0000
commit2c73dbcd75a2d5fce2141fee129dc84592782dea (patch)
tree023a93638decce3f97f5a9a8683d23500adbe55f /wiretap/netxray.c
parent58346b632786cebda787c8519b2d3e70207ab6b5 (diff)
Squelch compiler warnings.
svn path=/trunk/; revision=54500
Diffstat (limited to 'wiretap/netxray.c')
-rw-r--r--wiretap/netxray.c13
1 files changed, 5 insertions, 8 deletions
diff --git a/wiretap/netxray.c b/wiretap/netxray.c
index 23827499fc..c6cbec77a7 100644
--- a/wiretap/netxray.c
+++ b/wiretap/netxray.c
@@ -413,8 +413,8 @@ static int netxray_read_rec_header(wtap *wth, FILE_T fh,
union netxrayrec_hdr *hdr, int *err, gchar **err_info);
static void netxray_guess_atm_type(wtap *wth, struct wtap_pkthdr *phdr,
Buffer *buf);
-static void netxray_set_phdr(wtap *wth, Buffer *buf,
- struct wtap_pkthdr *phdr, union netxrayrec_hdr *hdr);
+static void netxray_set_phdr(wtap *wth, struct wtap_pkthdr *phdr,
+ union netxrayrec_hdr *hdr);
static gboolean netxray_dump_1_1(wtap_dumper *wdh,
const struct wtap_pkthdr *phdr,
const guint8 *pd, int *err);
@@ -1080,7 +1080,7 @@ reread:
/*
* Fill in the struct wtap_pkthdr.
*/
- netxray_set_phdr(wth, wth->frame_buffer, &wth->phdr, &hdr);
+ netxray_set_phdr(wth, &wth->phdr, &hdr);
/*
* If it's an ATM packet, and we don't have enough information
@@ -1123,7 +1123,7 @@ netxray_seek_read(wtap *wth, gint64 seek_off,
/*
* Fill in the struct wtap_pkthdr.
*/
- netxray_set_phdr(wth, buf, phdr, &hdr);
+ netxray_set_phdr(wth, phdr, &hdr);
/*
* If it's an ATM packet, and we don't have enough information
@@ -1178,14 +1178,12 @@ netxray_read_rec_header(wtap *wth, FILE_T fh, union netxrayrec_hdr *hdr,
}
static void
-netxray_set_phdr(wtap *wth, Buffer *buf, struct wtap_pkthdr *phdr,
- union netxrayrec_hdr *hdr)
+netxray_set_phdr(wtap *wth, struct wtap_pkthdr *phdr, union netxrayrec_hdr *hdr)
{
netxray_t *netxray = (netxray_t *)wth->priv;
double t;
guint32 packet_size;
guint padding = 0;
- const guint8 *pd;
/*
* If this is Ethernet, 802.11, ISDN, X.25, or ATM, set the
@@ -1417,7 +1415,6 @@ netxray_set_phdr(wtap *wth, Buffer *buf, struct wtap_pkthdr *phdr,
break;
case WTAP_ENCAP_ATM_PDUS_UNTRUNCATED:
- pd = buffer_start_ptr(buf);
/*
* XXX - the low-order bit of hdr_2_x.xxx[8]
* seems to indicate some sort of error. In