Small patches for tzcode1997e.tar.gz

Andreas Jaeger aj at arthur.rhein-neckar.de
Wed Jun 4 19:41:03 UTC 1997


Hi,

I've send the following mail already once to the list but neither get
an reply nor find it in tzarchive. Let's give it another try.

I've noticed that tzcode1997e has some prototype definitions that
don't match the actual function headers.
I've appended a patch for private.h and also for scheck.c (I think
that both parameters should be the same) and hope you can use it.

Thanks for a really good package.

Cheers,
Andreas

diff -cr tzcode1997e/private.h tz/private.h
*** tzcode1997e/private.h	Sun May  4 00:52:23 1997
--- tz/private.h	Wed May 21 16:56:12 1997
***************
*** 176,188 ****
  ** Private function declarations.
  */
  char *	icalloc P((int nelem, int elsize));
! char *	icatalloc P((char * old, const char * new));
! char *	icpyalloc P((const char * string));
! char *	imalloc P((int n));
! void *	irealloc P((void * pointer, int size));
! void	icfree P((char * pointer));
! void	ifree P((char * pointer));
! char *  scheck P((const char *string, char *format));
  
  
  /*
--- 176,188 ----
  ** Private function declarations.
  */
  char *	icalloc P((int nelem, int elsize));
! char *	icatalloc P((char * const old, const char * const new));
! char *	icpyalloc P((const char * const string));
! char *	imalloc P((const int n));
! void *	irealloc P((void * const pointer, const int size));
! void	icfree P((char * const pointer));
! void	ifree P((char * const pointer));
! char *  scheck P((const char * const string, const char * const format));
  
  
  /*
diff -cr tzcode1997e/scheck.c tz/scheck.c
*** tzcode1997e/scheck.c	Sun May  4 00:52:25 1997
--- tz/scheck.c	Wed May 21 16:52:54 1997
***************
*** 11,17 ****
  char *
  scheck(string, format)
  const char * const	string;
! char * const		format;
  {
  	register char *		fbuf;
  	register const char *	fp;
--- 11,17 ----
  char *
  scheck(string, format)
  const char * const	string;
! const char * const      format;
  {
  	register char *		fbuf;
  	register const char *	fp;
-- 
 Andreas Jaeger   aj at arthur.rhein-neckar.de    jaeger at informatik.uni-kl.de
  for pgp-key finger ajaeger at alma.student.uni-kl.de
    http://www.student.uni-kl.de/~ajaeger/



More information about the tz mailing list