[CRIU] Re: [PATCH] protobuf: set field size to proper value fro "ENUM" type

Pavel Emelyanov xemul at parallels.com
Sat Jul 28 01:10:26 EDT 2012


On 07/26/2012 06:44 PM, Kinsbursky Stanislav wrote:
> Signed-off-by: Stanislav Kinsbursky <skinsbursky at openvz.org>
> 
> ---
>  protobuf.c |    1 +
>  1 files changed, 1 insertions(+), 0 deletions(-)
> 
> diff --git a/protobuf.c b/protobuf.c
> index f5b5bd4..4a5d861 100644
> --- a/protobuf.c
> +++ b/protobuf.c
> @@ -138,6 +138,7 @@ static void pb_show_field(const ProtobufCFieldDescriptor *fd, void *where,
>  		case PROTOBUF_C_TYPE_ENUM:
>  			show = show_enum;
>  			ctl->arg = (void *)fd->descriptor;
> +			fsize = 4;
>  			break;
>  		case PROTOBUF_C_TYPE_FLOAT:
>  		case PROTOBUF_C_TYPE_DOUBLE:
> 

Applied


More information about the CRIU mailing list