ports/misc/rocrail/patches/patch-rocrail_impl_hclient_c

21 lines
1.2 KiB
Text

Index: rocrail/impl/hclient.c
--- rocrail/impl/hclient.c.orig
+++ rocrail/impl/hclient.c
@@ -174,7 +174,7 @@ static void __scan4Html( iOHClient inst ) {
if( StrOp.endsWithi( fileName, ".html" ) || StrOp.endsWithi( fileName, ".htm" ) ) {
char* path = StrOp.fmt( "%s%c%s", data->path, SystemOp.getFileSeparator(), fileName );
long size = FileOp.fileSize( path );
- long ftime = FileOp.fileTime( path );
+ time_t ftime = FileOp.fileTime( path );
StrOp.replaceAll( path, '\\', '/' );
SocketOp.fmt( data->socket, "<tr><td><a href=\"%s\">%s</a></td><td align=\"right\">%ld</td><td align=\"right\">%s</td></tr>\n",
path, path, size, ctime(&ftime) );
@@ -267,7 +267,7 @@ static void __getHome( iOHClient inst ) {
SocketOp.fmt( data->socket, "<table border=\"1\" cellpadding=\"4\" cellspacing= \"0\">\n" );
SocketOp.fmt( data->socket, "<tr><td>process id </td><td>%d </td></tr>\n", SystemOp.getpid() );
{
- long t = AppOp.getStartTime();
+ time_t t = AppOp.getStartTime();
SocketOp.fmt( data->socket, "<tr><td>started at</td><td>%s</td></tr>\n", ctime( &t ) );
}