Print this page
195 Need replacement for nfs/lockd+klm

@@ -34,10 +34,14 @@
  * University Acknowledgment- Portions of this document are derived from
  * software developed by the University of California, Berkeley, and its
  * contributors.
  */
 
+/*
+ * Copyright (c) 2012 by Delphix. All rights reserved.
+ */
+
 #pragma ident   "%Z%%M% %I%     %E% SMI"
 
 /*
  * sm_statd.c consists of routines used for the intermediate
  * statd implementation(3.2 rpc.statd);

@@ -579,12 +583,12 @@
         }
 
         tottimeout.tv_sec = SM_RPC_TIMEOUT;
         tottimeout.tv_usec = 0;
 
-        if ((clnt = create_client(name_or_addr, SM_PROG, SM_VERS,
-            &tottimeout)) == (CLIENT *) NULL) {
+        if ((clnt = create_client(name_or_addr, SM_PROG, SM_VERS, NULL,
+            &tottimeout)) == NULL) {
                 return (-1);
         }
 
         /* Perform notification to client */
         rc = 0;