X-Git-Url: https://git.decadent.org.uk/gitweb/?p=nfs-utils.git;a=blobdiff_plain;f=utils%2Fmount%2Fnetwork.c;h=7b1152a4b3fa479e121a8709af7a42dd40081c48;hp=d4ecbc947c47e99911ba1dd3c39fec64b0a99954;hb=2498a68b1bec01d0ee8a63962b314140e8289036;hpb=1af166179c3f28fa9943f7844e03032f3bdae7ea diff --git a/utils/mount/network.c b/utils/mount/network.c index d4ecbc9..7b1152a 100644 --- a/utils/mount/network.c +++ b/utils/mount/network.c @@ -172,9 +172,9 @@ static const unsigned long probe_mnt3_first[] = { 0, }; -inline const unsigned int *set_default_proto(void); +static const unsigned int *nfs_default_proto(void); #ifdef MOUNT_CONFIG -inline const unsigned int *set_default_proto() +static const unsigned int *nfs_default_proto() { extern unsigned long config_default_proto; /* @@ -187,7 +187,7 @@ inline const unsigned int *set_default_proto() return probe_tcp_first; } #else -inline const unsigned int *set_default_proto() +static const unsigned int *nfs_default_proto() { return probe_tcp_first; } @@ -633,7 +633,7 @@ static int nfs_probe_nfsport(const struct sockaddr *sap, const socklen_t salen, if (nfs_mount_data_version >= 4) { const unsigned int *probe_proto; - probe_proto = set_default_proto(); + probe_proto = nfs_default_proto(); return nfs_probe_port(sap, salen, pmap, probe_nfs3_first, probe_proto);