time_t is not necessarily unsigned long on OpenBSD.

This commit is contained in:
espie 2002-12-29 16:43:44 +00:00
parent 5c25bbb3bc
commit c9a903fb4a

View 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)