diff options
author | jake <jake@f5534014-38df-0310-8fa8-9805f1628bb7> | 2006-11-07 07:39:16 +0000 |
---|---|---|
committer | jake <jake@f5534014-38df-0310-8fa8-9805f1628bb7> | 2006-11-07 07:39:16 +0000 |
commit | 3e291cc845f6d05a8d5c616d7c7653416c49fa4b (patch) | |
tree | 6a5ac176df06383c84ad90e4249ce00e4209d8a0 /gtk | |
parent | b4e21ca5a50398e53185295f96b55040b4f00af4 (diff) |
From Albert Chin:
Patch attached to convert usage of ntohl() -> g_ntohl(). On HP-UX,
ntohl() isn't available unless you -D_XOPEN_SOURCE_EXTENDED but there
are other uses of g_ntohl().
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@19844 f5534014-38df-0310-8fa8-9805f1628bb7
Diffstat (limited to 'gtk')
-rw-r--r-- | gtk/sctp_graph_dlg.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gtk/sctp_graph_dlg.c b/gtk/sctp_graph_dlg.c index 27d0c04083..698d116012 100644 --- a/gtk/sctp_graph_dlg.c +++ b/gtk/sctp_graph_dlg.c @@ -199,7 +199,7 @@ static void draw_sack_graph(struct sctp_udata *u_data) { sack_header =(struct sack_chunk_header *)tlist->data; nr=ntohs(sack_header->nr_of_gaps); - tsnumber = ntohl(sack_header->cum_tsn_ack); + tsnumber = g_ntohl(sack_header->cum_tsn_ack); if (sack->secs>=u_data->io->x1_tmp_sec) { @@ -310,7 +310,7 @@ static void draw_tsn_graph(struct sctp_udata *u_data) { type = ((struct chunk_header *)tlist->data)->type; if (type == SCTP_DATA_CHUNK_ID) - tsnumber = ntohl(((struct data_chunk_header *)tlist->data)->tsn); + tsnumber = g_ntohl(((struct data_chunk_header *)tlist->data)->tsn); if (tsnumber>=min_tsn && tsnumber<=max_tsn && tsn->secs>=min_secs) { if (u_data->io->uoff) |