From 4a5ef1d2f67900b08c48b273b1161715f2e957ab Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Joakim=20Nohlg=C3=A5rd?= Date: Fri, 28 Sep 2018 08:05:09 +0200 Subject: [PATCH] native/netdev_tap: Rename variable to fix Wshadow warning --- cpu/native/netdev_tap/netdev_tap.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cpu/native/netdev_tap/netdev_tap.c b/cpu/native/netdev_tap/netdev_tap.c index ef847a1174..595cc200a5 100644 --- a/cpu/native/netdev_tap/netdev_tap.c +++ b/cpu/native/netdev_tap/netdev_tap.c @@ -222,9 +222,9 @@ static int _recv(netdev_t *netdev, void *buf, size_t len, void *info) } */ - static uint8_t buf[ETHERNET_FRAME_LEN]; + static uint8_t nullbuf[ETHERNET_FRAME_LEN]; - real_read(dev->tap_fd, buf, sizeof(buf)); + real_read(dev->tap_fd, nullbuf, sizeof(nullbuf)); _continue_reading(dev); }