diff options
Diffstat (limited to 'nfsmount.c')
-rw-r--r-- | nfsmount.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/nfsmount.c b/nfsmount.c index cd815102c..6643ed5aa 100644 --- a/nfsmount.c +++ b/nfsmount.c | |||
@@ -157,7 +157,7 @@ static const int NFS_MOUNT_NONLM = 0x0200; /* 3 */ | |||
157 | #define HAVE_personality | 157 | #define HAVE_personality |
158 | #define HAVE_tm_gmtoff | 158 | #define HAVE_tm_gmtoff |
159 | 159 | ||
160 | static char *nfs_strerror(int stat); | 160 | static char *nfs_strerror(int status); |
161 | 161 | ||
162 | #define MAKE_VERSION(p,q,r) (65536*(p) + 256*(q) + (r)) | 162 | #define MAKE_VERSION(p,q,r) (65536*(p) + 256*(q) + (r)) |
163 | #define MAX_NFSPROT ((nfs_mount_version >= 4) ? 3 : 2) | 163 | #define MAX_NFSPROT ((nfs_mount_version >= 4) ? 3 : 2) |
@@ -873,16 +873,16 @@ static struct { | |||
873 | { -1, EIO } | 873 | { -1, EIO } |
874 | }; | 874 | }; |
875 | 875 | ||
876 | static char *nfs_strerror(int stat) | 876 | static char *nfs_strerror(int status) |
877 | { | 877 | { |
878 | int i; | 878 | int i; |
879 | static char buf[256]; | 879 | static char buf[256]; |
880 | 880 | ||
881 | for (i = 0; nfs_errtbl[i].stat != -1; i++) { | 881 | for (i = 0; nfs_errtbl[i].stat != -1; i++) { |
882 | if (nfs_errtbl[i].stat == stat) | 882 | if (nfs_errtbl[i].stat == status) |
883 | return strerror(nfs_errtbl[i].errnum); | 883 | return strerror(nfs_errtbl[i].errnum); |
884 | } | 884 | } |
885 | sprintf(buf, _("unknown nfs status return value: %d"), stat); | 885 | sprintf(buf, _("unknown nfs status return value: %d"), status); |
886 | return buf; | 886 | return buf; |
887 | } | 887 | } |
888 | 888 | ||