[test] minor
authorEbrahim Byagowi <ebrahim@gnu.org>
Sat, 11 May 2019 19:50:42 +0000 (19:50 +0000)
committerGitHub <noreply@github.com>
Sat, 11 May 2019 19:50:42 +0000 (19:50 +0000)
style fix and add return statement

test/fuzzing/main.cc

index f15247c..bf3c32c 100644 (file)
@@ -4,7 +4,8 @@
 #include <stdlib.h>
 #include <assert.h>
 
-int main(int argc, char **argv) {
+int main (int argc, char **argv)
+{
   hb_blob_t *blob = hb_blob_create_from_file (argv[1]);
   unsigned int len;
   const char *font_data = hb_blob_get_data (blob, &len);
@@ -14,10 +15,13 @@ int main(int argc, char **argv) {
     exit (1);
   }
 
-  for (int i = 1; i < argc; i++) {
+  for (unsigned int i = 1; i < argc; i++)
+  {
     printf ("%s\n", argv[i]);
-    LLVMFuzzerTestOneInput((const uint8_t *) font_data, len);
+    LLVMFuzzerTestOneInput ((const uint8_t *) font_data, len);
   }
 
   hb_blob_destroy (blob);
+
+  return 0;
 }