Browse Source

NFSD: Path name length signage in nfsd request argument structures

Clean up: For consistency, store the length of path name strings in nfsd
argument structures as unsigned integers.

Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
Acked-By: NeilBrown <neilb@suse.de>
Signed-off-by: J. Bruce Fields <bfields@citi.umich.edu>
Chuck Lever 17 years ago
parent
commit
48b4ba3fdd
2 changed files with 2 additions and 2 deletions
  1. 1 1
      include/linux/nfsd/xdr.h
  2. 1 1
      include/linux/nfsd/xdr3.h

+ 1 - 1
include/linux/nfsd/xdr.h

@@ -73,7 +73,7 @@ struct nfsd_symlinkargs {
 	char *			fname;
 	char *			fname;
 	unsigned int		flen;
 	unsigned int		flen;
 	char *			tname;
 	char *			tname;
-	int			tlen;
+	unsigned int		tlen;
 	struct iattr		attrs;
 	struct iattr		attrs;
 };
 };
 
 

+ 1 - 1
include/linux/nfsd/xdr3.h

@@ -89,7 +89,7 @@ struct nfsd3_symlinkargs {
 	char *			fname;
 	char *			fname;
 	unsigned int		flen;
 	unsigned int		flen;
 	char *			tname;
 	char *			tname;
-	int			tlen;
+	unsigned int		tlen;
 	struct iattr		attrs;
 	struct iattr		attrs;
 };
 };