Module Name: src
Committed By: reinoud
Date: Tue Aug 23 18:36:08 UTC 2011
Modified Files:
src/sys/arch/usermode/usermode: thunk.c
Log Message:
Use write(1,..) and not putchar()
To generate a diff of this commit:
cvs rdiff -u -r1.15 -r1.16 src/sys/arch/usermode/usermode/thunk.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/sys/arch/usermode/usermode/thunk.c
diff -u src/sys/arch/usermode/usermode/thunk.c:1.15 src/sys/arch/usermode/usermode/thunk.c:1.16
--- src/sys/arch/usermode/usermode/thunk.c:1.15 Tue Aug 23 17:12:32 2011
+++ src/sys/arch/usermode/usermode/thunk.c Tue Aug 23 18:36:08 2011
@@ -1,4 +1,4 @@
-/* $NetBSD: thunk.c,v 1.15 2011/08/23 17:12:32 jmcneill Exp $ */
+/* $NetBSD: thunk.c,v 1.16 2011/08/23 18:36:08 reinoud Exp $ */
/*-
* Copyright (c) 2011 Jared D. McNeill <[email protected]>
@@ -27,7 +27,7 @@
*/
#include <sys/cdefs.h>
-__RCSID("$NetBSD: thunk.c,v 1.15 2011/08/23 17:12:32 jmcneill Exp $");
+__RCSID("$NetBSD: thunk.c,v 1.16 2011/08/23 18:36:08 reinoud Exp $");
#include <sys/types.h>
#include <sys/ansi.h>
@@ -188,8 +188,8 @@
void
thunk_putchar(int c)
{
- putchar(c);
- fflush(stdout);
+ char wc = (char) c;
+ write(1, &wc, 1);
}
int