]> git.decadent.org.uk Git - nfs-utils.git/commitdiff
libexport.a: Make export_add() static
authorChuck Lever <chuck.lever@oracle.com>
Tue, 22 Jun 2010 16:44:44 +0000 (12:44 -0400)
committerSteve Dickson <steved@redhat.com>
Tue, 22 Jun 2010 20:04:53 +0000 (16:04 -0400)
Clean up: export_add() is not called from outside of export.c, so make
it a static helper.

Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
Signed-off-by: Steve Dickson <steved@redhat.com>
support/export/export.c
support/include/exportfs.h

index 1800efd1622d1d4ddb9221a0844718adc0c67956..eca833c6762f855914748a30cab617c099d78cbc 100644 (file)
@@ -24,6 +24,7 @@ static int export_hash(char *);
 
 static void    export_init(nfs_export *exp, nfs_client *clp,
                                        struct exportent *nep);
+static void    export_add(nfs_export *exp);
 static int     export_check(const nfs_export *exp, const struct addrinfo *ai,
                                const char *path);
 static nfs_export *
@@ -151,10 +152,7 @@ export_dup(nfs_export *exp, const struct addrinfo *ai)
        return new;
 }
 
-/*
- * Add export entry to hash table
- */
-void 
+static void
 export_add(nfs_export *exp)
 {
        exp_hash_table *p_tbl;
index 8e548334e3c0ea7b79a2022a16f9f0c768d1f5da..3cf1ee82b9461bd20d5b3c16b7dc7cd929b34f36 100644 (file)
@@ -129,7 +129,6 @@ int                                 client_member(const char *client,
                                                const char *name);
 
 void                           export_read(char *fname);
-void                   export_add(nfs_export *);
 void                           export_reset(nfs_export *);
 nfs_export *                   export_lookup(char *hname, char *path, int caconical);
 nfs_export *                   export_find(const struct addrinfo *ai,