This is the mail archive of the libc-alpha@sourceware.cygnus.com mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

removing dead code


Here is a patch to remove some dead code. The code was probably meant to
read "*converted += n_convert;" but *converted now counts only the lossy
conversions.


2000-03-23  Bruno Haible  <haible@clisp.cons.org>

	* iconv/gconv_simple.c (internal_ucs4_loop, internal_ucs4le_loop):
	Remove no-op pointer increment.

*** iconv/gconv_simple.c.bak	Wed Mar 22 22:09:49 2000
--- iconv/gconv_simple.c	Thu Mar 23 01:07:23 2000
***************
*** 96,104 ****
    else
      result = __GCONV_INCOMPLETE_INPUT;
  
-   if (converted != NULL)
-     converted += n_convert;
- 
    return result;
  }
  
--- 96,101 ----
***************
*** 150,158 ****
      result = __GCONV_EMPTY_INPUT;
    else
      result = __GCONV_INCOMPLETE_INPUT;
- 
-   if (converted != NULL)
-     converted += n_convert;
  
    return result;
  }
--- 147,152 ----

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]