jcs
/wikipedia
/amendments
/2
dnr: Fix prototype of ResolveName
Not sure why this was taking a char **, we're not allocating anything
for name.
jcs made amendment 2 over 2 years ago
--- dnr.c Thu Aug 18 21:15:47 2022
+++ dnr.c Fri Aug 19 13:15:23 2022
@@ -316,7 +316,7 @@ StrToAddrMarkDone(struct hostInfo *hi, char *data)
}
OSErr
-ResolveName(char **name, unsigned long *ipAddress)
+ResolveName(char *name, unsigned long *ipAddress)
{
OSErr osErr;
struct hostInfo aHostInfo;
@@ -326,7 +326,7 @@ ResolveName(char **name, unsigned long *ipAddress)
if (osErr)
return osErr;
- osErr = StrToAddr(*name, &aHostInfo, (ResultProcPtr)StrToAddrMarkDone,
+ osErr = StrToAddr(name, &aHostInfo, (ResultProcPtr)StrToAddrMarkDone,
(char *)&done);
if (osErr == cacheFault) {
--- dnr.h Thu Aug 18 21:13:21 2022
+++ dnr.h Fri Aug 19 13:15:12 2022
@@ -71,6 +71,6 @@ typedef OSErr (*AddrToNameProcPtr)(UInt32, ip_addr add
struct hostInfo *hostInfoPtr, ResultProcPtr resultProc,
char *userDataPtr);
-OSErr ResolveName(char **name, unsigned long *ipAddress);
+OSErr ResolveName(char *name, unsigned long *ipAddress);
#endif