]> sourceware.org Git - lvm2.git/commitdiff
In test harness, use fwrite(3) in place of write(2) to avoid mixing fd-level
authorPetr Rockai <prokai@redhat.com>
Wed, 7 Apr 2010 09:48:11 +0000 (09:48 +0000)
committerPetr Rockai <prokai@redhat.com>
Wed, 7 Apr 2010 09:48:11 +0000 (09:48 +0000)
and FILE-level IO on stdout.

test/harness.c

index 6aaa4c4895abc37e367eb2301542ea779bdfb69a..49a60d8b45f1eedbfe9a1dd837db110da4f39a5c 100644 (file)
@@ -37,7 +37,7 @@ void handler( int s ) {
 }
 
 void dump() {
-       write(1, readbuf, readbuf_used);
+       fwrite(readbuf, 1, readbuf_used, stdout);
 }
 
 void clear() {
This page took 0.037671 seconds and 5 git commands to generate.