[PATCH 09/21] dm: Remove char * cast

Eugene Syromyatnikov evgsyr at gmail.com
Sun Oct 9 13:30:15 UTC 2016


---
 dm.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dm.c b/dm.c
index adfa97e..3ee74c3 100644
--- a/dm.c
+++ b/dm.c
@@ -286,7 +286,7 @@ dm_known_ioctl(struct tcb *tcp, const unsigned int code, long arg)
 	char *extra = NULL;
 	uint32_t extra_size = 0;
 
-	if (umoven(tcp, arg, sizeof(ioc) - sizeof(ioc.data), (char *) &ioc) < 0)
+	if (umoven(tcp, arg, sizeof(ioc) - sizeof(ioc.data), &ioc) < 0)
 		return 0;
 	tprintf(", {version=%d.%d.%d", ioc.version[0], ioc.version[1],
 		ioc.version[2]);
-- 
1.7.10.4





More information about the Strace-devel mailing list