Skip to content
Snippets Groups Projects
Commit 1951c034 authored by timeless%mozdev.org's avatar timeless%mozdev.org
Browse files

Bug 291988 build warnings in plevent.c

patch by bugzilla@gemal.dk r=alecf sr=darin a=asa
parent 000b41b9
No related branches found
No related tags found
No related merge requests found
......@@ -937,13 +937,13 @@ failed:
continue;
}
//found semaphore
/* found semaphore */
if(self->eventport < 0) {
self->eventport = create_port(200, portname);
}
return PR_SUCCESS;
}
//setup the port and semaphore
/* setup the port and semaphore */
if(self->eventport >= 0)
{
delete_port( self->eventport );
......@@ -1637,14 +1637,14 @@ static void _md_CreateEventQueue( PLEventQueue *eventQueue )
sourceContext.info = (void*)eventQueue;
sourceContext.perform = _md_EventReceiverProc;
// make a run loop source
/* make a run loop source */
eventQueue->mRunLoopSource = CFRunLoopSourceCreate(kCFAllocatorDefault, 0 /* order */, &sourceContext);
PR_ASSERT(eventQueue->mRunLoopSource);
eventQueue->mMainRunLoop = CFRunLoopGetCurrent();
CFRetain(eventQueue->mMainRunLoop);
// and add it to the run loop.
/* and add it to the run loop */
CFRunLoopAddSource(eventQueue->mMainRunLoop, eventQueue->mRunLoopSource, kCFRunLoopCommonModes);
#elif defined(MAC_USE_CARBON_EVENT)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment