fixing common off-by-one error with respect to maximum message size
[oweals/gnunet.git] / src / fs / gnunet-directory.c
index c1a7c78f3776ff5b0087084e0c508aa42cc042c2..1b17f69d24dc2f99f2100b58aa15d42bfa462960 100644 (file)
@@ -166,14 +166,6 @@ run (void *cls,
     }
 }
 
-/**
- * gnunet-directory command line options
- */
-static struct GNUNET_GETOPT_CommandLineOption options[] = {
-  GNUNET_GETOPT_OPTION_END
-};
-
-
 /**
  * The main function to inspect GNUnet directories.
  *
@@ -184,6 +176,9 @@ static struct GNUNET_GETOPT_CommandLineOption options[] = {
 int
 main (int argc, char *const *argv)
 {
+  static struct GNUNET_GETOPT_CommandLineOption options[] = {
+    GNUNET_GETOPT_OPTION_END
+  };
   return (GNUNET_OK ==
           GNUNET_PROGRAM_run (argc,
                               argv,