diff options
author | Jörg Frings-Fürst <debian@jff.email> | 2020-09-17 10:48:23 +0200 |
---|---|---|
committer | Jörg Frings-Fürst <debian@jff.email> | 2020-09-17 10:48:23 +0200 |
commit | 12f0c28c2c2a1785278df0d0731ef57921c0cd1a (patch) | |
tree | e0f40e53ff7ee84973790fb4b388ededa536dbe8 /util/ilan.c | |
parent | b3f027c605992040981c81d34ccc02a9f1976c07 (diff) | |
parent | 1759fac62c33877a7ebc52a423d6f99ddc9d08c4 (diff) |
Merge branch 'release/debian/3.1.7-1' into masterdebian/3.1.7-1
Diffstat (limited to 'util/ilan.c')
-rw-r--r-- | util/ilan.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/util/ilan.c b/util/ilan.c index 635a22a..4f32674 100644 --- a/util/ilan.c +++ b/util/ilan.c @@ -1796,7 +1796,7 @@ GetAdapters () printf ("Call to GetAdaptersAddresses failed.\n"); if (FormatMessage (FORMAT_MESSAGE_ALLOCATE_BUFFER | FORMAT_MESSAGE_FROM_SYSTEM | FORMAT_MESSAGE_IGNORE_INSERTS, NULL, RetVal, MAKELANGID (LANG_NEUTRAL, SUBLANG_DEFAULT), // Default language (LPTSTR) & MsgBuf, 0, NULL)) { - printf ("\tError: %s", MsgBuf); + printf ("\tError: %s", (char *)MsgBuf); } LocalFree (MsgBuf); } @@ -1884,7 +1884,7 @@ GetFirstIP (uchar * ipaddr, uchar * macadr, char *ipname, char fdbg) if (ipname != NULL) { wcstombs (ipname, AdapterList->FriendlyName, sizeof (ifname)); if (fdbg) - printf ("found Adapter: %d\n", ipname); + printf ("found Adapter: %s\n", ipname); } result = 0; break; @@ -2846,7 +2846,7 @@ SetSubnetMask () else { if (FormatMessage (FORMAT_MESSAGE_ALLOCATE_BUFFER | FORMAT_MESSAGE_FROM_SYSTEM | FORMAT_MESSAGE_IGNORE_INSERTS, NULL, dwRetVal, MAKELANGID (LANG_NEUTRAL, SUBLANG_DEFAULT), // Default language (LPTSTR) & lpMsgBuf, 0, NULL)) { - printf ("\tError: %s", lpMsgBuf); + printf ("\tError: %s", (char *)lpMsgBuf); } printf ("Call to GetIpAddrTable failed.\n"); |