Project

General

Profile

Bug #5325 » mod_tailq_insert_sorted_reverse.patch

Sebastian K., 2018-11-11 00:33

View differences:

./tvheadend-git.mod/src/queue.h 2018-11-10 23:56:58.723197097 +0100
92 92
        } else {						\
93 93
           typeof(elm) _tmp;					\
94 94
           TAILQ_FOREACH_REVERSE(_tmp,head,headname,field) {			\
95
              if(cmpfunc(elm,_tmp) >= 0) {			\
95
              if(cmpfunc(_tmp,elm) >= 0) {			\
96 96
                TAILQ_INSERT_AFTER(head,_tmp,elm,field);		\
97 97
                break;						\
98 98
              }							\
(3-3/3)