X-Git-Url: https://git.xonotic.org/?a=blobdiff_plain;f=conout.c;h=a57881bb4a277c16ea36451c81140a292b65dc08;hb=700628b2cb03bd17df74c7b617ef84914629c9b1;hp=eb57d68b69d048d8332d394d99f7de1739514538;hpb=3b271076762fe2be2f46efabc42bfc2331965f17;p=xonotic%2Fgmqcc.git diff --git a/conout.c b/conout.c index eb57d68..a57881b 100644 --- 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) {