]> git.xonotic.org Git - xonotic/gmqcc.git/blobdiff - conout.c
Remove trailing whitespace
[xonotic/gmqcc.git] / conout.c
index 8613ece127e502c01123dfb00e6a96ca525b6537..7e8cd9ad8f40a4c5768db4d52ae308184c357b42 100644 (file)
--- a/conout.c
+++ b/conout.c
@@ -168,7 +168,7 @@ static int win_fputs(FILE *h, const char *str) {
                 state    = -1;
             }
         } else {
-            fs_file_putc(h, *str);
+            fs_file_write(str, 1, 1, stdout);
             length ++;
         }
         str++;
@@ -282,17 +282,13 @@ int con_change(const char *out, const char *err) {
         con_enablecolor();
     } else if (!(console.handle_err = fs_file_open(err, "w"))) return 0;
 
-    /* no buffering */
-    setvbuf(console.handle_out, NULL, _IONBF, 0);
-    setvbuf(console.handle_err, NULL, _IONBF, 0);
-
     return 1;
 }
 
 /*
  * Defaultizer because stdio.h shouldn't be used anywhere except here
  * and inside file.c To prevent mis-match of wrapper-interfaces.
- */ 
+ */
 FILE *con_default_out() {
     return (console.handle_out = stdout);
 }