]> git.decadent.org.uk Git - nfs-utils.git/blobdiff - utils/mount/stropts.c
nfs-utils: Collect socket address helpers into one location
[nfs-utils.git] / utils / mount / stropts.c
index 9a13509961adeab01c221f57ebeae2d1a21dcd15..57a4b32df3babb364a717bd560afb35e269e38c3 100644 (file)
@@ -35,6 +35,7 @@
 #include <netinet/in.h>
 #include <arpa/inet.h>
 
+#include "sockaddr.h"
 #include "xcommon.h"
 #include "mount.h"
 #include "nls.h"
@@ -77,12 +78,6 @@ extern char *progname;
 extern int verbose;
 extern int sloppy;
 
-union nfs_sockaddr {
-       struct sockaddr         sa;
-       struct sockaddr_in      s4;
-       struct sockaddr_in6     s6;
-};
-
 struct nfsmount_info {
        const char              *spec,          /* server:/path */
                                *node,          /* mounted-on dir */