--- psiconv/trunk/lib/psiconv/list.c 2000/12/13 16:17:54 62 +++ psiconv/trunk/lib/psiconv/list.c 2000/12/22 22:31:50 71 @@ -1,6 +1,6 @@ /* list.c - Part of psiconv, a PSION 5 file formats converter - Copyright (c) 1999 Frodo Looijaard + Copyright (c) 1999, 2000 Frodo Looijaard This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -19,6 +19,7 @@ #include "config.h" +#include "compat.h" #include #include #include @@ -80,7 +81,7 @@ return ((char *) (l->els)) + indx * l->el_size; } -int psiconv_list_add(psiconv_list l, void *el) +int psiconv_list_add(psiconv_list l, const void *el) { if (psiconv_list_resize(l,l->cur_len + 1)) return -PSICONV_E_NOMEM; @@ -136,5 +137,6 @@ } else return -PSICONV_E_NOMEM; } + return 0; }