Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:trenn
irqbalance.SUSE_SLE-15-SP5_Update
Fix-signedness-of-error-handling.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File Fix-signedness-of-error-handling.patch of Package irqbalance.SUSE_SLE-15-SP5_Update
From: Neil Horman <neil.horman@privafy.com> Subject: Fix signedness of error handling References: Patch-Mainline: Git-commit: 3920e0687deff04c52ac73ebdbd950c13ef1f77e Git-repo: https://github.com/Irqbalance/irqbalance.git.git Signed-off-by: <trenn@suse.com> diff --git a/thermal.c b/thermal.c index 035e0ad..902d7e9 100644 --- a/thermal.c +++ b/thermal.c @@ -190,9 +190,9 @@ static int handle_groupid(struct nl_msg *msg, void *arg) static int handle_error(struct sockaddr_nl *sk_addr __attribute__((unused)), struct nlmsgerr *err, void *arg) { - int rc = (err->error == NLE_INTR) ? NL_SKIP : NL_STOP; + int rc = (err->error == -NLE_INTR) ? NL_SKIP : NL_STOP; - if (arg && err->error != NLE_INTR) { + if (arg && err->error != -NLE_INTR) { log(TO_ALL, LOG_INFO, "thermal: received a netlink error (%s).\n", nl_geterror(err->error)); *((int *)arg) = err->error;
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