summaryrefslogtreecommitdiff
path: root/wiretap/erf.c
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2011-04-20 17:53:11 +0000
committerGuy Harris <guy@alum.mit.edu>2011-04-20 17:53:11 +0000
commit0aeaa1642684909c449548d251dd48353ecfa31d (patch)
tree7d18fe35ffac96c7e3dda7bb23480c20b2e955c3 /wiretap/erf.c
parent42538888eacdd6e3390fb0b9b5e63270f59450b9 (diff)
downloadwireshark-0aeaa1642684909c449548d251dd48353ecfa31d.tar.gz
pntohll() takes a guint8 * as an argument; there's no need to cast to a
guint64 *, and it causes clang to complain. svn path=/trunk/; revision=36738
Diffstat (limited to 'wiretap/erf.c')
-rw-r--r--wiretap/erf.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/wiretap/erf.c b/wiretap/erf.c
index ba4fd10400..a2e7bf8dab 100644
--- a/wiretap/erf.c
+++ b/wiretap/erf.c
@@ -376,7 +376,7 @@ static int erf_read_header(FILE_T fh,
*bytes_read += (guint32)sizeof(erf_exhdr);
*packet_size -= (guint32)sizeof(erf_exhdr);
skiplen += (guint32)sizeof(erf_exhdr);
- erf_exhdr_sw = pntohll((guint64*) &(erf_exhdr[0]));
+ erf_exhdr_sw = pntohll(erf_exhdr);
if (i < max)
memcpy(&pseudo_header->erf.ehdr_list[i].ehdr, &erf_exhdr_sw, sizeof(erf_exhdr_sw));
type = erf_exhdr[0];