]> git.xonotic.org Git - xonotic/gmqcc.git/blobdiff - conout.c
counters for -Ocall-stores because we all love numbers
[xonotic/gmqcc.git] / conout.c
index eb57d68b69d048d8332d394d99f7de1739514538..a57881bb4a277c16ea36451c81140a292b65dc08 100644 (file)
--- a/conout.c
+++ b/conout.c
@@ -293,11 +293,11 @@ int con_change(const char *out, const char *err) {
  * Defaultizer because stdio.h shouldn't be used anywhere except here
  * and inside file.c To prevent mis-match of wrapper-interfaces.
  */ 
-void con_default_out() {
-    console.handle_out = stdout;
+FILE *con_default_out() {
+    return (console.handle_out = stdout);
 }
-void con_default_err() {
-    console.handle_err = stderr;
+FILE *con_default_err() {
+    return (console.handle_err = stderr);
 }
 
 int con_verr(const char *fmt, va_list va) {