From 7b58a8fb0b95d6809fbe3e8c7dc7a05729b6c828 Mon Sep 17 00:00:00 2001 From: snowdrop Date: Fri, 29 Oct 2004 09:27:02 +0000 Subject: added hoption feature --- nanohttp/nanohttp-client.c | 14 ++------------ 1 file changed, 2 insertions(+), 12 deletions(-) (limited to 'nanohttp/nanohttp-client.c') diff --git a/nanohttp/nanohttp-client.c b/nanohttp/nanohttp-client.c index c393573..039fda4 100644 --- a/nanohttp/nanohttp-client.c +++ b/nanohttp/nanohttp-client.c @@ -1,5 +1,5 @@ /****************************************************************** -* $Id: nanohttp-client.c,v 1.23 2004/10/28 10:30:46 snowdrop Exp $ +* $Id: nanohttp-client.c,v 1.24 2004/10/29 09:27:05 snowdrop Exp $ * * CSOAP Project: A http client/server library in C * Copyright (C) 2003 Ferhat Ayaz @@ -51,18 +51,8 @@ NOTE: This will be called from soap_client_init_args() herror_t httpc_init(int argc, char *argv[]) { - int i; - + hoption_init_args(argc, argv); hsocket_module_init(); - - /* initialize from arguments */ - for (i = 0; i < argc; i++) - { - if (!strcmp (argv[i], NHTTP_ARG_LOGFILE) && i < argc - 1) - { - log_set_file(argv[i+1]); - } - } return H_OK; } -- cgit v1.1-32-gdbae