]> git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - sys_linux.c
Clean up qtypes.h. Use stdbool.h on non-MSVC. Replace allcaps with lowercase
[xonotic/darkplaces.git] / sys_linux.c
index 0b954301e6c0d92927cfcecad7a17cac0df4f86d..4f864ec11d18864999790ca82dce8ef8b3a56dfb 100644 (file)
@@ -39,7 +39,7 @@ void Sys_Error (const char *error, ...)
        dpvsnprintf (string, sizeof (string), error, argptr);
        va_end (argptr);
 
-       Con_Printf ("Quake Error: %s\n", string);
+       Con_Errorf ("Engine Error: %s\n", string);
 
        Host_Shutdown ();
        exit (1);
@@ -62,7 +62,7 @@ void Sys_PrintToTerminal(const char *text)
 #endif
                while(*text)
                {
-                       fs_offset_t written = (fs_offset_t)write(outfd, text, strlen(text));
+                       fs_offset_t written = (fs_offset_t)write(outfd, text, (int)strlen(text));
                        if(written <= 0)
                                break; // sorry, I cannot do anything about this error - without an output
                        text += written;