Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
DISCONTINUED:openSUSE:11.2
xawtv
xawtv-xioctl-error.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File xawtv-xioctl-error.patch of Package xawtv
--- libng/plugins/drv0-v4l2.c | 4 ++-- libng/plugins/drv1-v4l.c | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) --- libng/plugins/drv0-v4l2.c.orig +++ libng/plugins/drv0-v4l2.c @@ -166,12 +166,12 @@ xioctl(int fd, int cmd, void *arg, int m int rc; rc = ioctl(fd,cmd,arg); - if (0 == rc && ng_debug < 2) + if (rc >= 0 && ng_debug < 2) return rc; if (mayfail && errno == mayfail && ng_debug < 2) return rc; print_ioctl(stderr,ioctls_v4l2,PREFIX,cmd,arg); - fprintf(stderr,": %s\n",(rc == 0) ? "ok" : strerror(errno)); + fprintf(stderr,": %s\n",(rc >= 0) ? "ok" : strerror(errno)); return rc; } --- libng/plugins/drv1-v4l.c.orig +++ libng/plugins/drv1-v4l.c @@ -219,10 +219,10 @@ xioctl(int fd, int cmd, void *arg) int rc; rc = ioctl(fd,cmd,arg); - if (0 == rc && ng_debug < 2) + if (rc >= 0 && ng_debug < 2) return 0; print_ioctl(stderr,ioctls_v4l1,PREFIX,cmd,arg); - fprintf(stderr,": %s\n",(rc == 0) ? "ok" : strerror(errno)); + fprintf(stderr,": %s\n",(rc >= 0) ? "ok" : strerror(errno)); return rc; }
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor