From a4afacc02da0c558bd2e455a63d16a9c4301e862 Mon Sep 17 00:00:00 2001 From: Mauro Carvalho Chehab Date: Sun, 21 Jan 2007 23:21:41 -0200 Subject: error check were wrong, since at userspace, error codes are positive vals From: Mauro Carvalho Chehab Signed-off-by: Mauro Carvalho Chehab --- v4l2-apps/test/driver-test.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'v4l2-apps/test/driver-test.c') diff --git a/v4l2-apps/test/driver-test.c b/v4l2-apps/test/driver-test.c index eaa099fac..a2ac365a3 100644 --- a/v4l2-apps/test/driver-test.c +++ b/v4l2-apps/test/driver-test.c @@ -36,7 +36,7 @@ int main(void) perror("open /dev/video0"); return -1; } - if (v4l2_enum_stds (&drv)<0) { + if (v4l2_enum_stds (&drv)) { perror("enum_stds"); printf("Error! Driver is not reporting supported STD, frames/sec and number of lines!\n Trying to continue anyway...\n"); } else { -- cgit v1.2.3