diff options
Diffstat (limited to 'sunrpc/clnt_unix.c')
-rw-r--r-- | sunrpc/clnt_unix.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sunrpc/clnt_unix.c b/sunrpc/clnt_unix.c index f5d06ce..365bdac 100644 --- a/sunrpc/clnt_unix.c +++ b/sunrpc/clnt_unix.c @@ -56,6 +56,8 @@ #include <sys/socket.h> #include <rpc/pmap_clnt.h> +extern u_long _create_xid (void); + #define MCALL_MSG_SIZE 24 struct ct_data @@ -112,7 +114,6 @@ clntunix_create (struct sockaddr_un *raddr, u_long prog, u_long vers, { CLIENT *h; struct ct_data *ct = (struct ct_data *) mem_alloc (sizeof (*ct)); - struct timeval now; struct rpc_msg call_msg; int len; @@ -167,8 +168,7 @@ clntunix_create (struct sockaddr_un *raddr, u_long prog, u_long vers, /* * Initialize call message */ - __gettimeofday (&now, (struct timezone *) 0); - call_msg.rm_xid = __getpid () ^ now.tv_sec ^ now.tv_usec; + call_msg.rm_xid = _create_xid (); call_msg.rm_direction = CALL; call_msg.rm_call.cb_rpcvers = RPC_MSG_VERSION; call_msg.rm_call.cb_prog = prog; |