Masatake YAMATO 99d6fa5746 fence-virtd: Use perror only if the last system call returns an error.
Fix wrong usage of perror. perror is called when data filled
by read system call is shorter than expected. It is not an error
of system call.  In such case perror should not be used.
Similar code can be found in place where write system call is used.

Signed-off-by: Masatake YAMATO <yamato@redhat.com>
2015-02-08 01:31:36 +09:00
..
2009-07-28 10:46:53 -04:00
2009-09-03 17:45:38 -04:00
2009-07-28 10:46:53 -04:00
2011-09-20 11:40:39 -04:00