summaryrefslogtreecommitdiff
path: root/dvbdevice.c
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2005-03-20 10:10:38 +0100
committerKlaus Schmidinger <vdr@tvdr.de>2005-03-20 10:10:38 +0100
commite760b14f646004a7fe99e4561156a132a0572cdb (patch)
treee90c068eea96be4e3a98fd2f734617032e859182 /dvbdevice.c
parent86a9d179bd27177fafa0d0b5931c377e8b90e9d5 (diff)
downloadvdr-e760b14f646004a7fe99e4561156a132a0572cdb.tar.gz
vdr-e760b14f646004a7fe99e4561156a132a0572cdb.tar.bz2
Some fixes to avoid compiler warnings in gcc 4.0
Diffstat (limited to 'dvbdevice.c')
-rw-r--r--dvbdevice.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/dvbdevice.c b/dvbdevice.c
index ce23f76d..9c8a0ac4 100644
--- a/dvbdevice.c
+++ b/dvbdevice.c
@@ -4,7 +4,7 @@
* See the main source file 'vdr.c' for copyright information and
* how to reach the author.
*
- * $Id: dvbdevice.c 1.126 2005/03/13 12:34:00 kls Exp $
+ * $Id: dvbdevice.c 1.127 2005/03/20 10:10:38 kls Exp $
*/
#include "dvbdevice.h"
@@ -577,7 +577,7 @@ bool cDvbDevice::GrabImage(const char *FileName, bool Jpeg, int Quality, int Siz
else {
// write PNM file:
if (fprintf(f, "P6\n%d\n%d\n255\n", vm.width, vm.height) < 0 ||
- fwrite(mem, vm.width * vm.height * 3, 1, f) < 0) {
+ fwrite(mem, vm.width * vm.height * 3, 1, f) != 1) {
LOG_ERROR_STR(FileName);
result |= 1;
}