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/pppdump.c | |
parent | f98625c0d00ce32fb4cb8d7065a830f31f4bf269 (diff) |
wiretap: start using <wsutil/pint.h>
svn path=/trunk/; revision=53764
Diffstat (limited to 'wiretap/pppdump.c')
-rw-r--r-- | wiretap/pppdump.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/wiretap/pppdump.c b/wiretap/pppdump.c index cc82c09485..1338d7eb8f 100644 --- a/wiretap/pppdump.c +++ b/wiretap/pppdump.c @@ -288,7 +288,7 @@ pppdump_open(wtap *wth, int *err, gchar **err_info) state = (pppdump_t *)g_malloc(sizeof(pppdump_t)); wth->priv = (void *)state; - state->timestamp = pntohl(&buffer[1]); + state->timestamp = pntoh32(&buffer[1]); state->tenths = 0; init_state(state); @@ -663,14 +663,14 @@ collate(pppdump_t* state, FILE_T fh, int *err, gchar **err_info, guint8 *pd, case PPPD_RESET_TIME: wtap_file_read_unknown_bytes(&time_long, sizeof(guint32), fh, err, err_info); state->offset += sizeof(guint32); - state->timestamp = pntohl(&time_long); + state->timestamp = pntoh32(&time_long); state->tenths = 0; break; case PPPD_TIME_STEP_LONG: wtap_file_read_unknown_bytes(&time_long, sizeof(guint32), fh, err, err_info); state->offset += sizeof(guint32); - state->tenths += pntohl(&time_long); + state->tenths += pntoh32(&time_long); if (state->tenths >= 10) { state->timestamp += state->tenths / 10; |