Skip to contentSkip to conversation

clean-up: fixes "shadows global" warning

PATCH In review Riina Kikas 2 participants 2 messages Dec 6, 2004

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 clean-up: fixes "shadows global" warning

This patch fixes warning "declaration of `errno' shadows a global declaration" occuring on line 102

include/linux/nfsd/export.h +1 -1
@@ -99,7 +99,7 @@
 int			exp_rootfh(struct auth_domain *,
 					char *path, struct knfsd_fh *, int maxsize);
 int			exp_pseudoroot(struct auth_domain *, struct svc_fh *fhp, struct cache_req *creq);
-int			nfserrno(int errno);
+int			nfserrno(int errno_l);
 
 extern void expkey_put(struct cache_head *item, struct cache_detail *cd);
 extern void svc_export_put(struct cache_head *item, struct cache_detail *cd);
#1 lore raw
Quoted 17 lines · Riina Kikas

This patch fixes warning "declaration of `errno' shadows a global declaration"
occuring on line 102

include/linux/nfsd/export.h +1 -1
@@ -99,7 +99,7 @@
 int			exp_rootfh(struct auth_domain *,
 					char *path, struct knfsd_fh *, int 
 					maxsize);
 int			exp_pseudoroot(struct auth_domain *, struct svc_fh 
 *fhp, struct cache_req *creq);
-int			nfserrno(int errno);
+int			nfserrno(int errno_l);
 
Quoted 3 lines

extern void expkey_put(struct cache_head *item, struct cache_detail *cd); extern void svc_export_put(struct cache_head *item, struct cache_detail *cd);

It doesn't make much sense to change the name in the prototype in the header file but not in the actual file.

cu
Adrian

Signature · 4 lines
       "Is there not promise of rain?" Ling Tan asked suddenly out
        of the darkness. There had been need of rain for many days.
       "Only a promise," Lao Er said.
                                       Pearl S. Buck - Dragon Seed