]> xenbits.xensource.com Git - libvirt.git/commit
rpc: Make rpcgen produce ANSI C code
authorAndrea Bolognani <abologna@redhat.com>
Thu, 2 Nov 2023 23:04:29 +0000 (00:04 +0100)
committerAndrea Bolognani <abologna@redhat.com>
Fri, 3 Nov 2023 11:03:23 +0000 (12:03 +0100)
commitabb6906260acc7f284e0aa035bef2f51f1509541
tree265c7656147a23ffe89f24c742e926bcc8842d4d
parent47ee78048cbacc643f9eacc55039ded609b2ad74
rpc: Make rpcgen produce ANSI C code

This is the default for the version of rpcgen shipped with
Linux distributions, but the one in macOS and possibly others
default to K&R C, which modern compilers don't appreciate.

Luckily, all versions of rpcgen shipped with our target
platforms seem to support the -C option.

Signed-off-by: Andrea Bolognani <abologna@redhat.com>
Reviewed-by: Laine Stump <laine@redhat.com>
Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
src/rpc/genprotocol.pl