Quellcode durchsuchen

Make print_preallocated static.

Otherwise compilation failes due to missing prototypes.
Stephan Gatzka vor 8 Jahren
Ursprung
Commit
345d57e9e5
1 geänderte Dateien mit 1 neuen und 1 gelöschten Zeilen
  1. 1 1
      test.c

+ 1 - 1
test.c

@@ -86,7 +86,7 @@ struct record
 
 
 /* Create a bunch of objects as demonstration. */
-int print_preallocated(cJSON *root)
+static int print_preallocated(cJSON *root)
 {
     /* declarations */
     char *out = NULL;