Skip to contentSkip to conversation

libnfs.a: move get_socket() function to utils/mount/network.c

PATCH In review Chuck Lever 1 participant 1 message Jul 29, 2007

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

PATCH 19/23 libnfs.a: move get_socket() function to utils/mount/network.c

Now we can address the real problem: that get_socket() depends on the global variable "verbose" which is only available in the mount command.

Move get_socket() into utils/mount/network.c, and make it static.

---

 support/include/conn.h |    2 -
 support/nfs/conn.c     |   78 ------------------------------------------------
 utils/mount/network.c  |   73 +++++++++++++++++++++++++++++++++++++++++++++
 3 files changed, 73 insertions(+), 80 deletions(-)
support/include/conn.h +0 -2
index ee1b686..2b1f07d 100644
@@ -28,7 +28,5 @@ typedef struct {
 static const struct timeval TIMEOUT = { 20, 0 };
 static const struct timeval RETRY_TIMEOUT = { 3, 0 };
 
-int get_socket(struct sockaddr_in *, u_int, int, int);
-
 #endif /* _CONN_H */
 
support/nfs/conn.c +0 -78

81 lines not on this page · raw message

utils/mount/network.c +73 -0

79 lines not on this page · raw message

-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
NFS maillist - [email protected]
https://lists.sourceforge.net/lists/listinfo/nfs