From 49f550e8ed0b4aeffef9d8e8cb9fc2126873ef7f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20Hentschel?= Date: Sun, 30 Jun 2013 15:35:09 +0200 Subject: [PATCH] netstat: Remove superfluous casts. --- programs/netstat/netstat.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/programs/netstat/netstat.c b/programs/netstat/netstat.c index 23f2b407619..fab39e34cd4 100644 --- a/programs/netstat/netstat.c +++ b/programs/netstat/netstat.c @@ -189,7 +189,7 @@ static void NETSTAT_eth_stats(void) size = sizeof(MIB_IFTABLE); do { - table = (PMIB_IFTABLE)HeapAlloc(GetProcessHeap(), 0, size); + table = HeapAlloc(GetProcessHeap(), 0, size); err = GetIfTable(table, &size, FALSE); if (err != NO_ERROR) HeapFree(GetProcessHeap(), 0, table); } while (err == ERROR_INSUFFICIENT_BUFFER); @@ -246,7 +246,7 @@ static void NETSTAT_tcp_table(void) size = sizeof(MIB_TCPTABLE); do { - table = (PMIB_TCPTABLE)HeapAlloc(GetProcessHeap(), 0, size); + table = HeapAlloc(GetProcessHeap(), 0, size); err = GetTcpTable(table, &size, TRUE); if (err != NO_ERROR) HeapFree(GetProcessHeap(), 0, table); } while (err == ERROR_INSUFFICIENT_BUFFER); @@ -301,7 +301,7 @@ static void NETSTAT_udp_table(void) size = sizeof(MIB_UDPTABLE); do { - table = (PMIB_UDPTABLE)HeapAlloc(GetProcessHeap(), 0, size); + table = HeapAlloc(GetProcessHeap(), 0, size); err = GetUdpTable(table, &size, TRUE); if (err != NO_ERROR) HeapFree(GetProcessHeap(), 0, table); } while (err == ERROR_INSUFFICIENT_BUFFER);