=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/ftp/stringlist.c,v retrieving revision 1.5 retrieving revision 1.6 diff -c -r1.5 -r1.6 *** src/usr.bin/ftp/stringlist.c 2004/07/20 03:50:26 1.5 --- src/usr.bin/ftp/stringlist.c 2004/09/16 04:39:16 1.6 *************** *** 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 $ */ /* --- 1,4 ---- ! /* $OpenBSD: stringlist.c,v 1.6 2004/09/16 04:39:16 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.5 2004/07/20 03:50:26 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.6 2004/09/16 04:39:16 deraadt Exp $"; #endif /* LIBC_SCCS and not lint and not SMALL */ #include *************** *** 97,116 **** free(sl->sl_str); } free(sl); - } - - - /* - * sl_find(): Find a name in the string list - */ - char * - sl_find(StringList *sl, char *name) - { - size_t i; - - for (i = 0; i < sl->sl_cur; i++) - if (strcmp(sl->sl_str[i], name) == 0) - return sl->sl_str[i]; - - return NULL; } --- 97,100 ----