summaryrefslogtreecommitdiffstats
path: root/src/osd/modules/netdev/taptun.cpp
diff options
context:
space:
mode:
author Miodrag Milanovic <mmicko@gmail.com>2016-10-22 13:13:17 +0200
committer Miodrag Milanovic <mmicko@gmail.com>2016-10-22 13:13:17 +0200
commitddb290d5f615019c33c42b8d94e5a5254cabcf33 (patch)
treea70f688b0df3acd19da7b1151e5902e3c6af3fa5 /src/osd/modules/netdev/taptun.cpp
parent333bff8de64dfaeb98134000412796b4fdef970b (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/taptun.cpp')
-rw-r--r--src/osd/modules/netdev/taptun.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/osd/modules/netdev/taptun.cpp b/src/osd/modules/netdev/taptun.cpp
index 393c791cd0a..32e86a64f90 100644
--- a/src/osd/modules/netdev/taptun.cpp
+++ b/src/osd/modules/netdev/taptun.cpp
@@ -43,15 +43,15 @@ public:
netdev_tap(const char *name, class device_network_interface *ifdev, int rate);
~netdev_tap();
- int send(UINT8 *buf, int len);
+ int send(uint8_t *buf, int len);
void set_mac(const char *mac);
protected:
- int recv_dev(UINT8 **buf);
+ int recv_dev(uint8_t **buf);
private:
int m_fd;
char m_ifname[10];
char m_mac[6];
- UINT8 m_buf[2048];
+ uint8_t m_buf[2048];
};
netdev_tap::netdev_tap(const char *name, class device_network_interface *ifdev, int rate)
@@ -94,14 +94,14 @@ void netdev_tap::set_mac(const char *mac)
memcpy(m_mac, mac, 6);
}
-int netdev_tap::send(UINT8 *buf, int len)
+int netdev_tap::send(uint8_t *buf, int len)
{
if(m_fd == -1) return 0;
len = write(m_fd, buf, len);
return (len == -1)?0:len;
}
-int netdev_tap::recv_dev(UINT8 **buf)
+int netdev_tap::recv_dev(uint8_t **buf)
{
int len;
if(m_fd == -1) return 0;