pkgsrc/sysutils/radmind/patches/patch-ktcheck.c
hauke 8716dbea59 Back-port and complete the fixes from radmind HEAD to support 64 bit
time_t on NetBSD 6+.

The configure patch had to be generated with autoconf downgraded to 2.61 -
leave it to autohell to ruin your day...

While we are here, shake, rattle & roll the patches.

The resulting gyrations finally fix PR pkg/46555
2014-01-08 11:54:04 +00:00

22 lines
687 B
C

$NetBSD: patch-ktcheck.c,v 1.1 2014/01/08 11:54:04 hauke Exp $
--- ktcheck.c.orig 2010-12-13 03:42:49.000000000 +0000
+++ ktcheck.c
@@ -459,7 +459,7 @@ check( SNET *sn, char *type, char *file
perror( "Incorrect number of arguments\n" );
return( 2 );
}
- times.modtime = atoi( targv[ 5 ] );
+ times.modtime = strtotimet( targv[ 5 ], NULL, 10 );
times.actime = time( NULL );
if (( stat( path, &st )) != 0 ) {
@@ -506,7 +506,7 @@ check( SNET *sn, char *type, char *file
needupdate = 1;
}
} else {
- if ( atoi( targv[ 5 ] ) != (int)st.st_mtime ) {
+ if ( strtotimet( targv[ 5 ], NULL, 10 ) != st.st_mtime ) {
needupdate = 1;
}
}