X-Git-Url: https://git.decadent.org.uk/gitweb/?p=nfs-utils.git;a=blobdiff_plain;f=utils%2Fshowmount%2Fshowmount.c;h=2695c510652910aca30601c25e27dea1d3359257;hp=17f7d87102b429896b1ef936daafa065e136e7f4;hb=29ac873f9024c8fcbca38ab09ba54cda3765b746;hpb=f7020bd5d3ffca280690c6beba5fecdeb4d305f7 diff --git a/utils/showmount/showmount.c b/utils/showmount/showmount.c index 17f7d87..2695c51 100644 --- a/utils/showmount/showmount.c +++ b/utils/showmount/showmount.c @@ -50,13 +50,6 @@ static int aflag = 0; static int dflag = 0; static int eflag = 0; -static const char *nfs_sm_pgmtbl[] = { - "showmount", - "mount", - "mountd", - NULL, -}; - static struct option longopts[] = { { "all", 0, 0, 'a' }, @@ -87,6 +80,13 @@ static void usage(FILE *fp, int n) #ifdef HAVE_CLNT_CREATE +static const char *nfs_sm_pgmtbl[] = { + "showmount", + "mount", + "mountd", + NULL, +}; + /* * Generate an RPC client handle connected to the mountd service * at @hostname, or die trying.