This is the mail archive of the libc-alpha@sources.redhat.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]

the __gconv_trans_context_fct type



The __gconv_trans_context_fct has wrong argument types. As one can see
from iconv/skeleton.c:468, it is called with arguments of type
(void *, const unsigned char *, const unsigned char *, unsigned char *,
unsigned char *). (The first argument is 'trans->__data', not 'trans'.)


2000-09-30  Bruno Haible  <haible@clisp.cons.org>

	* iconv/gconv.h (__gconv_trans_context_fct): Change first argument's
	type to 'void *'.

*** glibc-20000928/iconv/gconv.h.bak	Mon Jul  3 16:39:24 2000
--- glibc-20000928/iconv/gconv.h	Fri Sep 29 01:03:28 2000
***************
*** 84,91 ****
  				  size_t *);
  
  /* Function to call to provide transliteration module with context.  */
! typedef int (*__gconv_trans_context_fct) (struct __gconv_trans_data *,
! 					  __const unsigned char *,
  					  __const unsigned char *,
  					  unsigned char *, unsigned char *);
  
--- 84,90 ----
  				  size_t *);
  
  /* Function to call to provide transliteration module with context.  */
! typedef int (*__gconv_trans_context_fct) (void *, __const unsigned char *,
  					  __const unsigned char *,
  					  unsigned char *, unsigned char *);
  



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