Merge pull request #10066 from gebart/pr/netdev_tap-Wshadow

native/netdev_tap: Rename variable to fix -Wshadow warning
This commit is contained in:
Kaspar Schleiser 2018-09-28 10:13:20 +02:00 committed by GitHub
commit f2d28f88c5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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);
}