forked from osmocom/wireshark
Throw in some casts to suppress warnings.
svn path=/trunk/; revision=21971
This commit is contained in:
parent
13f3f6b85a
commit
00c0d3de9f
|
@ -2414,7 +2414,7 @@ static gboolean libpcap_dump(wtap_dumper *wdh,
|
|||
}
|
||||
break;
|
||||
}
|
||||
atm_hdr[SUNATM_VPI] = pseudo_header->atm.vpi;
|
||||
atm_hdr[SUNATM_VPI] = (guint8)pseudo_header->atm.vpi;
|
||||
phtons(&atm_hdr[SUNATM_VCI], pseudo_header->atm.vci);
|
||||
nwritten = wtap_dump_file_write(wdh, atm_hdr, sizeof atm_hdr);
|
||||
if (nwritten != sizeof atm_hdr) {
|
||||
|
|
|
@ -393,19 +393,19 @@ extern gint wtap_num_file_types;
|
|||
|
||||
#ifndef phtons
|
||||
#define phtons(p, v) \
|
||||
{ \
|
||||
(p)[0] = (v) >> 8; \
|
||||
(p)[1] = (v); \
|
||||
{ \
|
||||
(p)[0] = (guint8)((v) >> 8); \
|
||||
(p)[1] = (guint8)((v) >> 0); \
|
||||
}
|
||||
#endif
|
||||
|
||||
#ifndef phtonl
|
||||
#define phtonl(p, v) \
|
||||
{ \
|
||||
(p)[0] = ((v) >> 24); \
|
||||
(p)[1] = ((v) >> 16); \
|
||||
(p)[2] = ((v) >> 8); \
|
||||
(p)[3] = (v); \
|
||||
(p)[0] = (guint8)((v) >> 24); \
|
||||
(p)[1] = (guint8)((v) >> 16); \
|
||||
(p)[2] = (guint8)((v) >> 8); \
|
||||
(p)[3] = (guint8)((v) >> 0); \
|
||||
}
|
||||
#endif
|
||||
|
||||
|
|
Loading…
Reference in New Issue