[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-devel] [PATCH 2/7] libxc: Use const pointer in local_file_dump()
By adding the const keyword, it is clearer to people and static analysis tools that no changes to the data are to be made. Signed-off-by: Jennifer Herbert <jennifer.herbert@xxxxxxxxxx> --- tools/libxc/xc_core.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/libxc/xc_core.c b/tools/libxc/xc_core.c index dfa424b..f759fd6 100644 --- a/tools/libxc/xc_core.c +++ b/tools/libxc/xc_core.c @@ -926,7 +926,7 @@ struct dump_args { static int local_file_dump(xc_interface *xch, void *args, char *buffer, unsigned int length) { - struct dump_args *da = args; + const struct dump_args *da = args; if ( write_exact(da->fd, buffer, length) == -1 ) { -- 1.7.10.4 _______________________________________________ Xen-devel mailing list Xen-devel@xxxxxxxxxxxxx http://lists.xen.org/xen-devel
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |