mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-09 19:35:51 +00:00
Bug 291988 build warnings in plevent.c
patch by bugzilla@gemal.dk r=alecf sr=darin a=asa
This commit is contained in:
parent
000b41b9f2
commit
1951c0342f
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user