Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:olh:xen-4.5
libvirt-4.7.0
libvirt.genprotocol.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File libvirt.genprotocol.patch of Package libvirt-4.7.0
From: Olaf Hering <olaf@aepfle.de> Date: Tue, 11 Sep 2018 08:55:06 +0200 Subject: genprotocol Signed-off-by: Olaf Hering <olaf@aepfle.de> --- src/rpc/genprotocol.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/src/rpc/genprotocol.pl +++ b/src/rpc/genprotocol.pl @@ -95,25 +95,25 @@ while (<RPCGEN>) { # (char **)&objp->... gives: # warning: dereferencing type-punned pointer will break # strict-aliasing rules # so rewrite it. my %uses = (); my $i = 0; foreach (@function) { $uses{$1} = $i++ if m/\(char \*\*\)\&(objp->[a-z_.]+_val)/i; } if (keys %uses >= 1) { my $i = 1; - foreach (keys %uses) { + foreach (sort(keys %uses)) { $i = $uses{$_}; unshift @function, (" char **objp_cpp$i = (char **) (void *) &$_;\n"); $i++; } @function = map { s{\(char \*\*\)\&(objp->[a-z_.]+_val)} {objp_cpp$uses{$1}}gi; $_ } @function; } # The code uses 'IXDR_PUT_{U_,}LONG' but it's wrong in two # ways: Firstly these functions are deprecated and don't
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