Whamcloud - gitweb
land 0.5.20.3 b_devel onto HEAD (b_devel will remain)
[fs/lustre-release.git] / lustre / tests / testreq.c
index 351e506..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,7 +53,10 @@ 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 = argv[0];
         static struct option long_opts[] = {
@@ -111,7 +115,6 @@ int main(int argc, char **argv)
                         arg = strtoul(optarg, NULL, 0);
                         break;
                 case '?':
-                default:
                         usage(argv[0], 1);
                 }
         } while (c != -1);