--- parser3/src/targets/cgi/parser3.C 2009/03/09 21:33:24 1.249 +++ parser3/src/targets/cgi/parser3.C 2009/08/27 10:21:28 1.252 @@ -1,11 +1,11 @@ /** @file Parser: scripting and CGI main. - Copyright(c) 2001-2005 ArtLebedev Group (http://www.artlebedev.com) + Copyright(c) 2001-2009 ArtLebedev Group (http://www.artlebedev.com) Author: Alexandr Petrosian (http://paf.design.ru) */ -static const char * const IDENT_PARSER3_C="$Date: 2009/03/09 21:33:24 $"; +static const char * const IDENT_PARSER3_C="$Date: 2009/08/27 10:21:28 $"; #include "pa_config_includes.h" @@ -302,7 +302,7 @@ static const String sigpipe_name(SIGPIPE static void SIGPIPE_handler(int /*sig*/){ Value* sigpipe=0; if(request) - sigpipe=request->main_class.get_element(sigpipe_name, request->main_class, false); + sigpipe=request->main_class.get_element(sigpipe_name); if(sigpipe && sigpipe->as_bool()) log_signal(SIGPIPE_NAME); @@ -598,7 +598,7 @@ static void call_real_parser_handler__su static void usage(const char* program) { printf( "Parser/%s\n" - "Copyright(c) 2001-2008 ArtLebedev Group (http://www.artlebedev.com)\n" + "Copyright(c) 2001-2009 ArtLebedev Group (http://www.artlebedev.com)\n" "Author: Alexandr Petrosian (http://paf.design.ru)\n" "\n" "Usage: %s [options] file\n" @@ -675,7 +675,7 @@ int main(int argc, char *argv[]) { if(raw_filespec_to_process && !*raw_filespec_to_process) raw_filespec_to_process=0; } else { - size_t optind=1; + int optind=1; while(optind < argc){ char *carg = argv[optind]; if(carg[0] != '-')