=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/ftp/stringlist.c,v retrieving revision 1.4 retrieving revision 1.5 diff -c -r1.4 -r1.5 *** src/usr.bin/ftp/stringlist.c 2003/12/16 21:46:22 1.4 --- src/usr.bin/ftp/stringlist.c 2004/07/20 03:50:26 1.5 *************** *** 1,4 **** ! /* $OpenBSD: stringlist.c,v 1.4 2003/12/16 21:46:22 deraadt Exp $ */ /* $NetBSD: stringlist.c,v 1.2 1997/01/17 07:26:20 lukem Exp $ */ /* --- 1,4 ---- ! /* $OpenBSD: stringlist.c,v 1.5 2004/07/20 03:50:26 deraadt Exp $ */ /* $NetBSD: stringlist.c,v 1.2 1997/01/17 07:26:20 lukem Exp $ */ /* *************** *** 33,39 **** */ #if defined(LIBC_SCCS) && !defined(lint) && !defined(SMALL) ! static char *rcsid = "$OpenBSD: stringlist.c,v 1.4 2003/12/16 21:46:22 deraadt Exp $"; #endif /* LIBC_SCCS and not lint and not SMALL */ #include --- 33,39 ---- */ #if defined(LIBC_SCCS) && !defined(lint) && !defined(SMALL) ! static char *rcsid = "$OpenBSD: stringlist.c,v 1.5 2004/07/20 03:50:26 deraadt Exp $"; #endif /* LIBC_SCCS and not lint and not SMALL */ #include *************** *** 49,55 **** * sl_init(): Initialize a string list */ StringList * ! sl_init() { StringList *sl = malloc(sizeof(StringList)); if (sl == NULL) --- 49,55 ---- * sl_init(): Initialize a string list */ StringList * ! sl_init(void) { StringList *sl = malloc(sizeof(StringList)); if (sl == NULL) *************** *** 68,76 **** * sl_add(): Add an item to the string list */ void ! sl_add(sl, name) ! StringList *sl; ! char *name; { if (sl->sl_cur == sl->sl_max - 1) { sl->sl_max += _SL_CHUNKSIZE; --- 68,74 ---- * sl_add(): Add an item to the string list */ void ! sl_add(StringList *sl, char *name) { if (sl->sl_cur == sl->sl_max - 1) { sl->sl_max += _SL_CHUNKSIZE; *************** *** 86,94 **** * sl_free(): Free a stringlist */ void ! sl_free(sl, all) ! StringList *sl; ! int all; { size_t i; --- 84,90 ---- * sl_free(): Free a stringlist */ void ! sl_free(StringList *sl, int all) { size_t i; *************** *** 108,116 **** * sl_find(): Find a name in the string list */ char * ! sl_find(sl, name) ! StringList *sl; ! char *name; { size_t i; --- 104,110 ---- * sl_find(): Find a name in the string list */ char * ! sl_find(StringList *sl, char *name) { size_t i;