Changeset 9953


Ignore:
Timestamp:
Jan 17, 2010, 4:52:52 AM (12 years ago)
Author:
charles
Message:

(trunk libevent) yes, more assertions for exiva

Location:
trunk/third-party/libevent
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/third-party/libevent/event.c

    r9952 r9953  
    838838{
    839839        assert(ev != NULL);
     840        assert(ev->ev_base != NULL);
    840841        assert(res != 0);
    841842
  • trunk/third-party/libevent/kqueue.c

    r9950 r9953  
    289289        int i, res;
    290290
     291        assert(base != NULL);
     292
    291293        if (tv != NULL) {
    292294                TIMEVAL_TO_TIMESPEC(tv, &ts);
     
    361363                } else {
    362364                        ev = (struct event *)events[i].udata;
     365                        assert(ev != NULL);
     366                        assert(ev->ev_pri == 0);
     367                        assert(ev->base != NULL);
     368                        assert(ev->base == base);
    363369
    364370                        if (!(ev->ev_events & EV_PERSIST))
     
    520526        struct kqidx *kqidx;
    521527
     528        assert(ev != NULL);
     529        assert(ev->ev_pri == 0);
     530
    522531        changes_ok(kqop);
    523532        if (!(ev->ev_flags & EVLIST_X_KQINKERNEL))
Note: See TracChangeset for help on using the changeset viewer.