Whamcloud - gitweb
Cleanup compiler warnings
[fs/lustre-release.git] / lustre / ptlrpc / import.c
index 7214a05..dd09f3d 100644 (file)
@@ -567,7 +567,7 @@ int ptlrpc_connect_import(struct obd_import *imp, char *new_uuid)
         request->rq_interpret_reply = ptlrpc_connect_interpret;
 
         CLASSERT(sizeof (*aa) <= sizeof (request->rq_async_args));
-        aa = (struct ptlrpc_connect_async_args *)&request->rq_async_args;
+        aa = ptlrpc_req_async_args(request);
         memset(aa, 0, sizeof *aa);
 
         aa->pcaa_peer_committed = committed_before_reconnect;