X-Git-Url: https://git.whamcloud.com/?p=fs%2Flustre-release.git;a=blobdiff_plain;f=lustre%2Futils%2Flustre_cfg.c;h=9079242a75ca138c9412b0a9632f67aa9f8955d7;hp=4b527d0ed996fc55967d503110bcd98e2c62a7b7;hb=23b26e90a343ecff14c67dea1bafb65e23473cd6;hpb=526e9c54f2113da0c1484e70791167f7d16cbf00 diff --git a/lustre/utils/lustre_cfg.c b/lustre/utils/lustre_cfg.c index 4b527d0..9079242 100644 --- a/lustre/utils/lustre_cfg.c +++ b/lustre/utils/lustre_cfg.c @@ -647,10 +647,10 @@ static void clean_path(char *path) } struct param_opts { - int only_path; - int show_path; - int show_type; - int recursive; + int only_path:1; + int show_path:1; + int show_type:1; + int recursive:1; }; static int listparam_cmdline(int argc, char **argv, struct param_opts *popt) @@ -766,6 +766,7 @@ static int getparam_cmdline(int argc, char **argv, struct param_opts *popt) popt->show_path = 1; popt->only_path = 0; popt->show_type = 0; + popt->recursive = 0; while ((ch = getopt(argc, argv, "nNF")) != -1) { switch (ch) { @@ -905,6 +906,7 @@ static int setparam_cmdline(int argc, char **argv, struct param_opts *popt) popt->show_path = 1; popt->only_path = 0; popt->show_type = 0; + popt->recursive = 0; while ((ch = getopt(argc, argv, "n")) != -1) { switch (ch) {