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, "%s%ld%s\n", path, path, size, ctime(&ftime) ); @@ -267,7 +267,7 @@ static void __getHome( iOHClient inst ) { SocketOp.fmt( data->socket, "\n" ); SocketOp.fmt( data->socket, "\n", SystemOp.getpid() ); { - long t = AppOp.getStartTime(); + time_t t = AppOp.getStartTime(); SocketOp.fmt( data->socket, "\n", ctime( &t ) ); }
process id %d
started at%s