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
This commit is contained in:
Guy Harris 2011-04-20 17:53:11 +00:00
parent 42538888ea
commit 0aeaa16426
1 changed files with 1 additions and 1 deletions

View File

@ -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];