Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:phoe
jack
jack-shmat-check-fix.diff
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File jack-shmat-check-fix.diff of Package jack
--- libjack/shm.c-orig 2008-12-04 21:43:55.000000000 +0100 +++ libjack/shm.c 2008-12-29 21:29:53.000000000 +0100 @@ -794,7 +794,7 @@ } } - if ((ri->attached_at = shmat (registry_id, 0, 0)) < 0) { + if ((ri->attached_at = shmat (registry_id, 0, 0)) == (void *)-1) { jack_error ("cannot attach shm registry segment (%s)", strerror (errno)); return EINVAL; @@ -827,7 +827,7 @@ return errno; } - if ((ri->attached_at = shmat (registry_id, 0, 0)) < 0) { + if ((ri->attached_at = shmat (registry_id, 0, 0)) == (void *)-1) { jack_error ("cannot attach shm registry segment (%s)", strerror (errno)); return EINVAL; @@ -903,7 +903,7 @@ jack_attach_shm (jack_shm_info_t* si) { if ((si->attached_at = shmat (jack_shm_registry[si->index].id, - 0, 0)) < 0) { + 0, 0)) == (void *)-1) { jack_error ("cannot attach shm segment (%s)", strerror (errno)); jack_release_shm_info (si->index);
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