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
Loading
Loading
Loading
Loading
+4 −4
Original line number Diff line number Diff line
@@ -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)