libnfs.a: move get_socket() function to utils/mount/network.c
Subsystems (2)
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
@@ -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