Whamcloud - gitweb
b=3643
[fs/lustre-release.git] / lustre / tests / testreq.c
index 8580a58..774398d 100644 (file)
@@ -33,6 +33,7 @@
 #include <getopt.h>
 #undef _GNU_SOURCE
 
+#include <liblustre.h>
 #include <linux/lustre_mds.h>
 
 static void usage(char *argv0, int status)
@@ -52,9 +53,12 @@ static void usage(char *argv0, int status)
 
 int main(int argc, char **argv)
 {
-        int fd, rc, c, cmd = 0;
+        int fd = 0;
+        int rc = 0;
+        int c  = 0;
+        long cmd = 0;
         unsigned long arg;
-        char *short_opts = "h", *name;
+        char *short_opts = "h", *name = argv[0];
         static struct option long_opts[] = {
 #define OPT_GETATTR -2
                 {"getattr", no_argument, NULL, OPT_GETATTR},
@@ -112,7 +116,6 @@ int main(int argc, char **argv)
                         break;
                 case '?':
                         usage(argv[0], 1);
-                        break;
                 }
         } while (c != -1);