diff options
author | 2016-10-22 13:13:17 +0200 | |
---|---|---|
committer | 2016-10-22 13:13:17 +0200 | |
commit | ddb290d5f615019c33c42b8d94e5a5254cabcf33 (patch) | |
tree | a70f688b0df3acd19da7b1151e5902e3c6af3fa5 /src/osd/modules/netdev/pcap.cpp | |
parent | 333bff8de64dfaeb98134000412796b4fdef970b (diff) |
NOTICE (TYPE NAME CONSOLIDATION)
Use standard uint64_t, uint32_t, uint16_t or uint8_t instead of UINT64, UINT32, UINT16 or UINT8
also use standard int64_t, int32_t, int16_t or int8_t instead of INT64, INT32, INT16 or INT8
Diffstat (limited to 'src/osd/modules/netdev/pcap.cpp')
-rw-r--r-- | src/osd/modules/netdev/pcap.cpp | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/osd/modules/netdev/pcap.cpp b/src/osd/modules/netdev/pcap.cpp index f5e01d8ea98..c8131f88c3b 100644 --- a/src/osd/modules/netdev/pcap.cpp +++ b/src/osd/modules/netdev/pcap.cpp @@ -92,11 +92,11 @@ static pcap_module *module = nullptr; #ifdef SDLMAME_MACOSX struct netdev_pcap_context { - UINT8 *pkt; + uint8_t *pkt; int len; pcap_t *p; - UINT8 packets[32][1600]; + uint8_t packets[32][1600]; int packetlens[32]; int head; int tail; @@ -109,10 +109,10 @@ public: netdev_pcap(const char *name, class device_network_interface *ifdev, int rate); ~netdev_pcap(); - virtual int send(UINT8 *buf, int len) override; + virtual int send(uint8_t *buf, int len) override; virtual void set_mac(const char *mac) override; protected: - virtual int recv_dev(UINT8 **buf) override; + virtual int recv_dev(uint8_t **buf) override; private: pcap_t *m_p; #ifdef SDLMAME_MACOSX @@ -196,7 +196,7 @@ void netdev_pcap::set_mac(const char *mac) } } -int netdev_pcap::send(UINT8 *buf, int len) +int netdev_pcap::send(uint8_t *buf, int len) { int ret; if(!m_p) { @@ -209,10 +209,10 @@ int netdev_pcap::send(UINT8 *buf, int len) //return (!pcap_sendpacket_dl(m_p, buf, len))?len:0; } -int netdev_pcap::recv_dev(UINT8 **buf) +int netdev_pcap::recv_dev(uint8_t **buf) { #ifdef SDLMAME_MACOSX - UINT8 pktbuf[2048]; + uint8_t pktbuf[2048]; int ret; // Empty |