소스 검색

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. */
-int print_preallocated(cJSON *root)
+static int print_preallocated(cJSON *root)
 {
     /* declarations */
     char *out = NULL;