diff options
author | Jakub Zawadzki <darkjames-ws@darkjames.pl> | 2013-12-03 20:35:50 +0000 |
---|---|---|
committer | Jakub Zawadzki <darkjames-ws@darkjames.pl> | 2013-12-03 20:35:50 +0000 |
commit | 01e08ae582b9e01bd5d236e748f43b4a2cedee43 (patch) | |
tree | 144a4d538a1b9801393b3a6ed896e15be740dcd5 /wiretap/csids.c | |
parent | f98625c0d00ce32fb4cb8d7065a830f31f4bf269 (diff) |
wiretap: start using <wsutil/pint.h>
svn path=/trunk/; revision=53764
Diffstat (limited to 'wiretap/csids.c')
-rw-r--r-- | wiretap/csids.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/wiretap/csids.c b/wiretap/csids.c index 7a372ca788..ff80ce5e1a 100644 --- a/wiretap/csids.c +++ b/wiretap/csids.c @@ -89,8 +89,8 @@ int csids_open(wtap *wth, int *err, gchar **err_info) if( hdr.zeropad != 0 || hdr.caplen == 0 ) { return 0; } - hdr.seconds = pntohl( &hdr.seconds ); - hdr.caplen = pntohs( &hdr.caplen ); + hdr.seconds = pntoh32( &hdr.seconds ); + hdr.caplen = pntoh16( &hdr.caplen ); bytesRead = file_read( &tmp, 2, wth->fh ); if( bytesRead != 2 ) { *err = file_error( wth->fh, err_info ); @@ -107,7 +107,7 @@ int csids_open(wtap *wth, int *err, gchar **err_info) } return 0; } - iplen = pntohs(&iplen); + iplen = pntoh16(&iplen); if ( iplen == 0 ) return 0; @@ -196,8 +196,8 @@ csids_read_packet(FILE_T fh, csids_t *csids, struct wtap_pkthdr *phdr, *err = WTAP_ERR_SHORT_READ; return FALSE; } - hdr.seconds = pntohl(&hdr.seconds); - hdr.caplen = pntohs(&hdr.caplen); + hdr.seconds = pntoh32(&hdr.seconds); + hdr.caplen = pntoh16(&hdr.caplen); phdr->presence_flags = WTAP_HAS_TS; phdr->len = hdr.caplen; |