You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@apr.apache.org by ma...@apache.org on 2004/07/05 16:36:18 UTC

cvs commit: apr-iconv/util iconv.c

martin      2004/07/05 07:36:18

  Modified:    util     iconv.c
  Log:
  Use the apr_getopt_t options structure filled in above.
  
  Revision  Changes    Path
  1.8       +3 -3      apr-iconv/util/iconv.c
  
  Index: iconv.c
  ===================================================================
  RCS file: /home/cvs/apr-iconv/util/iconv.c,v
  retrieving revision 1.7
  retrieving revision 1.8
  diff -u -u -r1.7 -r1.8
  --- iconv.c	26 Sep 2003 07:47:14 -0000	1.7
  +++ iconv.c	5 Jul 2004 14:36:17 -0000	1.8
  @@ -153,9 +153,9 @@
   	if (input) {
   		if (iconv_bwrite(is, input, strlen(input)) <= 0)
   			exit(8);
  -	} else if (optind < argc) {
  -		for (opt = optind; opt < argc; opt ++)
  -			convert_file(argv[opt], is);
  +	} else if (options->ind < options->argc) {
  +		for (opt = options->ind; opt < options->argc; opt ++)
  +			convert_file(options->argv[opt], is);
   	} else
   		convert_file("-", is);
   	if (iconv_write(is, NULL, 0) < 0)