about summary refs log tree commit diff
path: root/src/test.cc
diff options
context:
space:
mode:
authorEelco Dolstra <e.dolstra@tudelft.nl>2003-06-18T14·34+0000
committerEelco Dolstra <e.dolstra@tudelft.nl>2003-06-18T14·34+0000
commit38e12df631cc45fda97942070d7ebea1bb9c7f2f (patch)
tree4f1fc069c2728838efce3eaf7c23cadaaeac3f39 /src/test.cc
parentaeaffec7857301a6d20d7901041918484666d567 (diff)
* `nix --dump' command.
Diffstat (limited to 'src/test.cc')
-rw-r--r--src/test.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/test.cc b/src/test.cc
index 019c7bf7e580..a3706472ee6d 100644
--- a/src/test.cc
+++ b/src/test.cc
@@ -21,7 +21,8 @@ struct MySink : DumpSink
 {
     virtual void operator () (const unsigned char * data, unsigned int len)
     {
-        cout.write((char *) data, len);
+        /* Don't use cout, it's slow as hell! */
+        write(STDOUT_FILENO, (char *) data, len);
     }
 };