Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
SUSE:SLE-12-SP3:GA
libibverbs
libibverbs-1.1.4-fix-deleted-ntohl.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File libibverbs-1.1.4-fix-deleted-ntohl.patch of Package libibverbs
Name: Robert Klein <kleinrob@mpip-mainz.mpg.de> Date: 2012-08-12 12:00:00 +0200 Subject: add accidentally removed ntohl Jan Engelhardts strict-aliasing patch accidentally removed an ntohl. this patch reintroduces it. --- --- examples/pingpong.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) Index: libibverbs-1.1.7/examples/pingpong.c =================================================================== --- libibverbs-1.1.7.orig/examples/pingpong.c 2014-01-17 18:40:47.915091677 +0100 +++ libibverbs-1.1.7/examples/pingpong.c 2014-01-17 18:44:07.357475561 +0100 @@ -72,9 +72,9 @@ void wire_gid_to_gid(const char *wgid, u for (tmp[8] = 0, i = 0; i < 4; ++i) { memcpy(tmp, wgid + i * 8, 8); - sscanf(tmp, "%x", &v32); - v32n = ntohl(v32); - memcpy(&gid->raw[i*4], &v32n, sizeof(v32n)); + sscanf(tmp, "%x", &v32n); + v32 = ntohl(v32n); + memcpy(&gid->raw[i*4], &v32, sizeof(v32)); } }
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