netu! abgr gb frys: jevgr fbzr gbby gb cvpx gur evtug ybpny cngpurf
git-svn-id: svn://svn.berlios.de/mutt-ng/trunk@217
e385b8ad-14ed-0310-8656-
cc95a2468c6d
#include "mem.h"
list2_t* list_new (void) {
#include "mem.h"
list2_t* list_new (void) {
- return (safe_calloc (sizeof (list2_t), 1));
+ return (safe_calloc (1, sizeof (list2_t)));
}
void list_del (list2_t** l, void (*edel) (void**)) {
}
void list_del (list2_t** l, void (*edel) (void**)) {
int i = 0;
if (list_empty(Incoming))
return (-1);
int i = 0;
if (list_empty(Incoming))
return (-1);
while (i < Incoming->length)
if (((BUFFY*) Incoming->data[i++])->msg_unread)
return (i-1);
while (i < Incoming->length)
if (((BUFFY*) Incoming->data[i++])->msg_unread)
return (i-1);
int i = 0;
if (list_empty(Incoming))
return (-1);
int i = 0;
if (list_empty(Incoming))
return (-1);
while (i >= 0)
if (((BUFFY*) Incoming->data[i--])->msg_unread)
return (i+1);
while (i >= 0)
if (((BUFFY*) Incoming->data[i--])->msg_unread)
return (i+1);