1
0
mirror of https://github.com/mfontanini/libtins synced 2026-01-23 02:35:57 +01:00

Fix compilation warnings on Windows.

This commit is contained in:
Matias Fontanini
2015-04-25 18:44:38 -07:00
parent 5c8fdd2b6c
commit c108f6e4e6
9 changed files with 22 additions and 16 deletions

View File

@@ -381,7 +381,6 @@ template<class ForwardIterator>
void Tins::Utils::route_entries(ForwardIterator output) {
MIB_IPFORWARDTABLE *table;
ULONG size = 0;
char iface_name[256];
GetIpForwardTable(0, &size, 0);
std::vector<uint8_t> buffer(size);
table = (MIB_IPFORWARDTABLE*)&buffer[0];