summaryrefslogtreecommitdiff
path: root/util/ilan.c
diff options
context:
space:
mode:
authorJörg Frings-Fürst <debian@jff.email>2020-09-14 12:27:35 +0200
committerJörg Frings-Fürst <debian@jff.email>2020-09-14 12:27:35 +0200
commit808dd89a2beae6ab1d29d35f6119ad5b36969589 (patch)
tree29dc5c93b1bc45be42e68f00b81c1106c3935862 /util/ilan.c
parent13dc8738dcd4739941735eab4d1956ccce770525 (diff)
parent0e9b185152b56ff33fe8a2a89a4f84923a308300 (diff)
Update upstream source from tag 'upstream/3.1.7'
Update to upstream version '3.1.7' with Debian dir 7d3f308e3ed6f413d39e2d1262518e82b3b486bc
Diffstat (limited to 'util/ilan.c')
-rw-r--r--util/ilan.c6
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");