pkgsrc-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: PR/45691 CVS commit: pkgsrc/textproc/libplist



The following reply was made to PR pkg/45691; it has been noted by GNATS.

From: David Holland <dholland-pbugs%netbsd.org@localhost>
To: gnats-bugs%NetBSD.org@localhost
Cc: 
Subject: Re: PR/45691 CVS commit: pkgsrc/textproc/libplist
Date: Mon, 5 Mar 2012 17:36:52 +0000

 On Sun, Jan 01, 2012 at 02:40:03PM +0000, Sergey Svishchev wrote:
  >  Module Name:       pkgsrc
  >  Committed By:      shattered
  >  Date:              Sun Jan  1 14:39:33 UTC 2012
  >  
  >  Modified Files:
  >     pkgsrc/textproc/libplist: Makefile distinfo
  >  Added Files:
  >     pkgsrc/textproc/libplist/patches: patch-swig_plist.i
  >  
  >  Log Message:
  >  Fix build on 5.1/amd64 (PR 45691) -- cast long tv_sec to time_t.  Not
  >  a problem in -current, where tv_sec is time_t.
 
  > +-    struct tm* t = gmtime ( &$1.tv_sec );
  > ++    struct tm* t = gmtime ( (time_t*)&$1.tv_sec );
 
 That is not correct; you're trying to change the size of the integer
 the pointer points to.
 
 -- 
 David A. Holland
 dholland%netbsd.org@localhost
 


Home | Main Index | Thread Index | Old Index