X-Git-Url: http://de.git.xonotic.org/?p=xonotic%2Fdarkplaces.git;a=blobdiff_plain;f=sys_linux.c;h=6264af67cdf3130feef0c559d2d62ea33700c5d6;hp=d0120432b6f745981916d8416bb817dd8e4ff829;hb=8bf0a0e63b2c9998aa79491da2f31fd6d73dd49c;hpb=62a118903c62ee0cd98698820ef30285aa2b4ab7 diff --git a/sys_linux.c b/sys_linux.c index d0120432..6264af67 100644 --- a/sys_linux.c +++ b/sys_linux.c @@ -59,7 +59,7 @@ void Sys_PrintToTerminal(const char *text) #endif while(*text) { - int written = (int)write(1, text, strlen(text)); + int written = (int)write(1, text, (int)strlen(text)); if(written <= 0) break; // sorry, I cannot do anything about this error - without an output text += written; @@ -76,6 +76,7 @@ double Sys_DoubleTime (void) static double oldtime = 0.0, curtime = 0.0; double newtime; #ifdef WIN32 +#include // LordHavoc: note to people modifying this code, DWORD is specifically defined as an unsigned 32bit number, therefore the 65536.0 * 65536.0 is fine. if (sys_usetimegettime.integer) {