]> git.proxmox.com Git - mirror_qemu.git/commit
block: Constify data passed by pointer to blk_name
authorKrzysztof Kozlowski <krzk@kernel.org>
Sun, 5 Mar 2017 21:44:35 +0000 (23:44 +0200)
committerKevin Wolf <kwolf@redhat.com>
Thu, 27 Apr 2017 13:39:49 +0000 (15:39 +0200)
commit0731a50feba67a829b86df6dffec682c821f1152
tree287169ab1971ece29f3303c756c6e7b37bb680cf
parent81b2d5ceb0cfb4cdc2163492e3169ed714b0cda9
block: Constify data passed by pointer to blk_name

blk_name() is not modifying data passed to it through pointer and it
returns also a pointer to const so the argument can be made const for
code safeness.

Signed-off-by: Krzysztof Kozlowski <krzk@kernel.org>
Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
block/block-backend.c
include/sysemu/block-backend.h