]> git.michaelhowe.org Git - packages/o/openafs.git/commitdiff
kernel ioctl32 conversion typecasting
authorDerrick Brashear <shadow@dementia.org>
Thu, 17 Dec 2009 14:48:06 +0000 (09:48 -0500)
committerDerrick Brashear <shadow|account-1000005@unknown>
Thu, 17 Dec 2009 14:54:43 +0000 (06:54 -0800)
cast types to avoid a pointer from integer warning when using pointer
types for sizing

(cherry picked from 9faaa2fed8c8dd0ae1c9288b1e1130bec78dc9f8)
Change-Id: Idac76608e5352c65a13d07bfadb66d78f9db0ffd
Reviewed-on: http://gerrit.openafs.org/988
Reviewed-by: Derrick Brashear <shadow@dementia.org>
Tested-by: Derrick Brashear <shadow@dementia.org>
Reviewed-on: http://gerrit.openafs.org/989

src/afs/afs_call.c

index a530cab0481b92c5f4ed5b5dde4c7867ea48dd4f..2b810d9f9f42dc4968a1f560ca333bbb0a3b899f 100644 (file)
@@ -1399,10 +1399,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