浏览代码

Make print_preallocated static.

Otherwise compilation failes due to missing prototypes.
Stephan Gatzka 8 年之前
父节点
当前提交
345d57e9e5
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      test.c

+ 1 - 1
test.c

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