From: Derrick Brashear Date: Thu, 17 Dec 2009 14:48:06 +0000 (-0500) Subject: kernel ioctl32 conversion typecasting X-Git-Tag: openafs-devel-1_5_69~99 X-Git-Url: https://git.michaelhowe.org/gitweb/?a=commitdiff_plain;h=9faaa2fed8c8dd0ae1c9288b1e1130bec78dc9f8;p=packages%2Fo%2Fopenafs.git kernel ioctl32 conversion typecasting cast types to avoid a pointer from integer warning when using pointer types for sizing Change-Id: Idac76608e5352c65a13d07bfadb66d78f9db0ffd Reviewed-on: http://gerrit.openafs.org/988 Reviewed-by: Derrick Brashear Tested-by: Derrick Brashear --- diff --git a/src/afs/afs_syscall.c b/src/afs/afs_syscall.c index 04b6e8f8f..c83e71e6c 100644 --- a/src/afs/afs_syscall.c +++ b/src/afs/afs_syscall.c @@ -344,10 +344,10 @@ struct iparam32 { static void iparam32_to_iparam(const struct iparam32 *src, struct iparam *dst) { - dst->param1 = src->param1; - dst->param2 = src->param2; - dst->param3 = src->param3; - dst->param4 = src->param4; + dst->param1 = (iparmtype)(uintptr_t)src->param1; + dst->param2 = (iparmtype)(uintptr_t)src->param2; + dst->param3 = (iparmtype)(uintptr_t)src->param3; + dst->param4 = (iparmtype)(uintptr_t)src->param4; } #endif