Fix casts

This commit is contained in:
maride 2016-04-02 15:51:03 +02:00
parent f30bb4ccc5
commit 2b62e0647d

View File

@ -167,7 +167,7 @@ static void ContinueResolveProcess(void)
{
if (CFArrayGetCount(gServiceArrayRef) > gNextNameIndexToResolve)
{
(const void*)serviceNameRef = CFArrayGetValueAtIndex(gServiceArrayRef, gNextNameIndexToResolve++);
serviceNameRef = (CFStringRef)CFArrayGetValueAtIndex(gServiceArrayRef, gNextNameIndexToResolve++);
MyResolveService(serviceNameRef, kServiceType, kMyDefaultDomain);
}
else
@ -309,7 +309,7 @@ static void StartResolveProcess(void)
gNextNameIndexToResolve = 0;
if (CFArrayGetCount(gServiceArrayRef) > gNextNameIndexToResolve)
{
(const void*)serviceNameRef = CFArrayGetValueAtIndex(gServiceArrayRef, gNextNameIndexToResolve++);
serviceNameRef = (CFStringRef)CFArrayGetValueAtIndex(gServiceArrayRef, gNextNameIndexToResolve++);
MyResolveService(serviceNameRef, kServiceType, kMyDefaultDomain);
}
else