time_t is not necessarily unsigned long on OpenBSD.
This commit is contained in:
parent
5c25bbb3bc
commit
c9a903fb4a
12
x11/kde/libs3/patches/patch-kio_kio_ktar_cpp
Normal file
12
x11/kde/libs3/patches/patch-kio_kio_ktar_cpp
Normal file
@ -0,0 +1,12 @@
|
||||
$OpenBSD: patch-kio_kio_ktar_cpp,v 1.1 2002/12/29 16:43:44 espie Exp $
|
||||
--- kio/kio/ktar.cpp.orig Sun Dec 29 17:33:40 2002
|
||||
+++ kio/kio/ktar.cpp Sun Dec 29 17:33:59 2002
|
||||
@@ -474,7 +474,7 @@ void KTar::fillBuffer( char * buffer,
|
||||
buffer[ 0x87 ] = ' '; // space-terminate (no null after)
|
||||
|
||||
// Dummy time
|
||||
- s.sprintf("%lo", time( 0 ) ); // OCT
|
||||
+ s.sprintf("%lo", static_cast<unsigned long>(time( 0 )) ); // OCT
|
||||
s = s.rightJustify( 11, ' ' );
|
||||
strcpy( buffer + 0x88, s.data() );
|
||||
buffer[ 0x93 ] = ' '; // space-terminate (no null after)
|
Loading…
Reference in New Issue
Block a user