]> git.decadent.org.uk Git - nfs-utils.git/commitdiff
Removed warnings from fsloc.c
authorSteve Dickson <steved@redhat.com>
Mon, 19 Jul 2010 17:07:00 +0000 (13:07 -0400)
committerSteve Dickson <steved@redhat.com>
Mon, 9 Aug 2010 13:57:02 +0000 (09:57 -0400)
fsloc.c: In function 'replicas_lookup':
fsloc.c:149: warning: unused parameter 'key'

Signed-off-by: Steve Dickson <steved@redhat.com>
utils/mountd/cache.c
utils/mountd/fsloc.c
utils/mountd/fsloc.h

index bf18a9aba169d53ee05279957a7cfa9b4a64540d..54880561bec026aa09e4b60802a2c77c690a083c 100644 (file)
@@ -600,7 +600,7 @@ static void write_fsloc(FILE *f, struct exportent *ep, char *path)
        if (ep->e_fslocmethod == FSLOC_NONE)
                return;
 
        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");
        if (!servers)
                return;
        qword_print(f, "fsloc");
index 5b094b09f4eb9d7bb2ce1fc7731cf8f51abd1c3c..e2add2d8f24c7802b3184312cce0de0379752f35 100644 (file)
@@ -146,7 +146,7 @@ static struct servers *method_list(char *data)
 }
 
 /* Returns appropriately filled struct servers, or NULL if had a problem */
 }
 
 /* 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) {
 {
        struct servers *sp=NULL;
        switch(method) {
index 8296d1cd96b8268d655f21ca2711a8dc7c2a2fe1..1605df452a771d4b311d1c2e595a9ce0dbc21c96 100644 (file)
@@ -44,7 +44,7 @@ struct servers {
        int h_referral;         /* 0=replica, 1=referral */
 };
 
        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 */
 void release_replicas(struct servers *server);
 
 #endif /* FSLOC_H */