[CRIU] [PATCH 1/4] cg: Add ability to dump custom cgroup properties

Tycho Andersen tycho.andersen at canonical.com
Fri May 13 14:28:08 PDT 2016


On Fri, May 13, 2016 at 11:03:43PM +0300, Cyrill Gorcunov wrote:
> +static int cgp_parse_builtins(void)
> +{
> +	static const char predefined_stream[] =
...
> +
> +	return cgp_parse_stream((void *)predefined_stream,
> +				strlen(predefined_stream));

Minor nit here, but it would be handy if we didn't have to cast this
to void to work around const. Can we just declare it non-const if
fixing all the functions won't work?

Tycho


More information about the CRIU mailing list