Fix dlls/iphlpapi warning regressions
Gerald Pfeifer
gerald at pfeifer.com
Sat Jan 27 14:35:24 CST 2007
This patch addresses the following two warnings introduced end of
the week:
ipstats.c:609: warning: long int format, size_t arg (arg 5)
ipstats.c:676: warning: long int format, size_t arg (arg 5)
Gerald
ChangeLog:
Use %zd printf format instead of %ld for size_t.
--- ipstats.c.orig Sat Jan 27 21:23:43 2007
+++ ipstats.c Sat Jan 27 21:28:07 2007
@@ -606,7 +606,7 @@ DWORD getNumRoutes(void)
buf = HeapAlloc (GetProcessHeap (), 0, needed);
if (!buf)
{
- ERR ("HeapAlloc of %ld failed!\n", needed);
+ ERR ("HeapAlloc of %zd failed!\n", needed);
return 0;
}
@@ -673,7 +673,7 @@ DWORD getRouteTable(PMIB_IPFORWARDTABLE
buf = HeapAlloc (GetProcessHeap (), 0, needed);
if (!buf)
{
- ERR ("HeapAlloc of %ld failed!\n", needed);
+ ERR ("HeapAlloc of %zd failed!\n", needed);
HeapFree (GetProcessHeap (), 0, table);
return ERROR_OUTOFMEMORY;
}
More information about the wine-patches
mailing list