From: Steve Dickson Date: Mon, 19 Jul 2010 17:07:00 +0000 (-0400) Subject: Removed warnings from fsloc.c X-Git-Tag: nfs-utils-1-2-3-rc5~17 X-Git-Url: https://git.decadent.org.uk/gitweb/?a=commitdiff_plain;h=9d5eaa2e939723c47649f0f112b43cc8ff414740;p=nfs-utils.git Removed warnings from fsloc.c fsloc.c: In function 'replicas_lookup': fsloc.c:149: warning: unused parameter 'key' Signed-off-by: Steve Dickson --- diff --git a/utils/mountd/cache.c b/utils/mountd/cache.c index bf18a9a..5488056 100644 --- a/utils/mountd/cache.c +++ b/utils/mountd/cache.c @@ -600,7 +600,7 @@ static void write_fsloc(FILE *f, struct exportent *ep, char *path) if (ep->e_fslocmethod == FSLOC_NONE) return; - servers = replicas_lookup(ep->e_fslocmethod, ep->e_fslocdata, path); + servers = replicas_lookup(ep->e_fslocmethod, ep->e_fslocdata); if (!servers) return; qword_print(f, "fsloc"); diff --git a/utils/mountd/fsloc.c b/utils/mountd/fsloc.c index 5b094b0..e2add2d 100644 --- a/utils/mountd/fsloc.c +++ b/utils/mountd/fsloc.c @@ -146,7 +146,7 @@ static struct servers *method_list(char *data) } /* Returns appropriately filled struct servers, or NULL if had a problem */ -struct servers *replicas_lookup(int method, char *data, char *key) +struct servers *replicas_lookup(int method, char *data) { struct servers *sp=NULL; switch(method) { diff --git a/utils/mountd/fsloc.h b/utils/mountd/fsloc.h index 8296d1c..1605df4 100644 --- a/utils/mountd/fsloc.h +++ b/utils/mountd/fsloc.h @@ -44,7 +44,7 @@ struct servers { int h_referral; /* 0=replica, 1=referral */ }; -struct servers *replicas_lookup(int method, char *data, char *key); +struct servers *replicas_lookup(int method, char *data); void release_replicas(struct servers *server); #endif /* FSLOC_H */