1
0
mirror of https://gitlab.com/libvirt/libvirt.git synced 2025-03-20 07:59:00 +00:00

memory: fix remote protocol compilation

'make -C src rpcgen' is supposed to be idempotent.  But commit
f928f43b7b mistakently manually edited a generated file rather
than fixing the upstream file.

* src/remote/remote_protocol.x (remote_memory_param_value): Use
correct spelling of enum values.
* src/remote/remote_protocol.c: Regenerate.
This commit is contained in:
Eric Blake 2010-10-13 11:09:40 -06:00
parent f98a6cd6ae
commit 450cbebe1c
2 changed files with 30 additions and 29 deletions

View File

@ -316,6 +316,7 @@ xdr_remote_memory_param_value(XDR * xdrs, remote_memory_param_value * objp)
switch (objp->type) { switch (objp->type) {
case VIR_DOMAIN_MEMORY_PARAM_INT: case VIR_DOMAIN_MEMORY_PARAM_INT:
return FALSE; return FALSE;
break;
case VIR_DOMAIN_MEMORY_PARAM_UINT: case VIR_DOMAIN_MEMORY_PARAM_UINT:
if (!xdr_u_int (xdrs, &objp->remote_memory_param_value_u.ui)) if (!xdr_u_int (xdrs, &objp->remote_memory_param_value_u.ui))
return FALSE; return FALSE;

View File

@ -317,17 +317,17 @@ struct remote_sched_param {
}; };
union remote_memory_param_value switch (int type) { union remote_memory_param_value switch (int type) {
case VIR_DOMAIN_MEMORY_FIELD_INT: case VIR_DOMAIN_MEMORY_PARAM_INT:
int i; int i;
case VIR_DOMAIN_MEMORY_FIELD_UINT: case VIR_DOMAIN_MEMORY_PARAM_UINT:
unsigned int ui; unsigned int ui;
case VIR_DOMAIN_MEMORY_FIELD_LLONG: case VIR_DOMAIN_MEMORY_PARAM_LLONG:
hyper l; hyper l;
case VIR_DOMAIN_MEMORY_FIELD_ULLONG: case VIR_DOMAIN_MEMORY_PARAM_ULLONG:
unsigned hyper ul; unsigned hyper ul;
case VIR_DOMAIN_MEMORY_FIELD_DOUBLE: case VIR_DOMAIN_MEMORY_PARAM_DOUBLE:
double d; double d;
case VIR_DOMAIN_MEMORY_FIELD_BOOLEAN: case VIR_DOMAIN_MEMORY_PARAM_BOOLEAN:
int b; int b;
}; };