Skip to contentSkip to conversation

mount command: Fix type of get_socket's timeout argument

PATCH New Chuck Lever 1 participant 1 message Feb 18, 2008

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 7/17 mount command: Fix type of get_socket's timeout argument

Clean up: The type of get_socket's timeout argument should match the type of the ultimate destination of its value, the tv_sec field in a timeval struct.

---

 utils/mount/network.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
utils/mount/network.c +2 -2
index c54b312..a893a4a 100644
@@ -260,7 +260,7 @@ static int __nfs_gs_err_connect(const int socket, const struct sockaddr *saddr,
  * On error return, caller closes the socket.
  */
 static int connect_to(int fd, struct sockaddr *addr,
-			socklen_t addrlen, int timeout)
+			socklen_t addrlen, time_t timeout)
 {
 	int ret, saved;
 	fd_set rset, wset;
@@ -308,7 +308,7 @@ out:
  * The caller should check rpc_createerr to determine the cause of any error.
  */
 static int get_socket(struct sockaddr_in *saddr, unsigned int p_prot,
-			unsigned int timeout, int resvp, int conn)
+			time_t timeout, int resvp, int conn)
 {
 	int so, type;
 	struct sockaddr_in laddr;