[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

[lvm-devel] LVM2/test harness.c



CVSROOT:	/cvs/lvm2
Module name:	LVM2
Changes by:	mornfall sourceware org	2010-04-07 09:48:11

Modified files:
	test           : harness.c 

Log message:
	In test harness, use fwrite(3) in place of write(2) to avoid mixing fd-level
	and FILE-level IO on stdout.

Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/LVM2/test/harness.c.diff?cvsroot=lvm2&r1=1.7&r2=1.8

--- LVM2/test/harness.c	2010/04/07 09:41:33	1.7
+++ LVM2/test/harness.c	2010/04/07 09:48:11	1.8
@@ -37,7 +37,7 @@
 }
 
 void dump() {
-	write(1, readbuf, readbuf_used);
+	fwrite(readbuf, 1, readbuf_used, stdout);
 }
 
 void clear() {


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]