From b58531efe41fa68da23d813248d4bd6672bcf011 Mon Sep 17 00:00:00 2001 From: Assar Westerlund Date: Fri, 12 Nov 1999 15:59:42 +0000 Subject: [PATCH] (args): use arg_counter for `l' git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@7355 ec53bebd-3082-4978-b11e-865c3cabbd6b --- appl/ftp/ftpd/ftpd.c | 15 +-------------- 1 file changed, 1 insertion(+), 14 deletions(-) diff --git a/appl/ftp/ftpd/ftpd.c b/appl/ftp/ftpd/ftpd.c index 78200a59d..ac0e22177 100644 --- a/appl/ftp/ftpd/ftpd.c +++ b/appl/ftp/ftpd/ftpd.c @@ -208,25 +208,12 @@ int use_builtin_ls; static int help_flag; static int version_flag; -static int -log_collect(int short_flag, int argc, char **argv, - int *optind, int *optarg, void *data) -{ - (*(int*)data)++; - return 0; -} - -static getarg_collect_info log_collect_info = { - log_collect, - &logflag -}; - struct getargs args[] = { { NULL, 'a', arg_string, &auth_string, "required authentication" }, { NULL, 'i', arg_flag, &interactive_flag, "don't assume stdin is a socket" }, { NULL, 'p', arg_string, &port_string, "what port to listen to" }, { NULL, 'g', arg_string, &guest_umask_string, "umask for guest logins" }, - { NULL, 'l', arg_collect, &log_collect_info, "log more stuff", "" }, + { NULL, 'l', arg_counter, &logflag, "log more stuff", "" }, { NULL, 't', arg_integer, &ftpd_timeout, "initial timeout" }, { NULL, 'T', arg_integer, &maxtimeout, "max timeout" }, { NULL, 'u', arg_string, &umask_string, "umask for user logins" },