Re: [PATCH 2.6] clean-up: fixes "shadows global" warning
From: Adrian Bunk
Date: Mon Dec 06 2004 - 16:44:49 EST
On Mon, Dec 06, 2004 at 10:52:58PM +0200, Riina Kikas wrote:
> This patch fixes warning "declaration of `errno' shadows a global
> declaration"
> occuring on line 102
>
> Signed-off-by: Riina Kikas <Riina.Kikas@xxxxxxx>
>
> --- a/include/linux/nfsd/export.h 2004-08-14 10:55:33.000000000 +0000
> +++ b/include/linux/nfsd/export.h 2004-10-31 19:01:15.000000000 +0000
> @@ -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);
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
--
"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
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/