--- psiconv/trunk/lib/psiconv/list.c 2000/12/13 16:17:54 62 +++ psiconv/trunk/lib/psiconv/list.c 2000/12/20 22:07:49 70 @@ -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 @@ -80,7 +80,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 +136,6 @@ } else return -PSICONV_E_NOMEM; } + return 0; }