mirror of
https://github.com/DaveGamble/cJSON.git
synced 2023-08-10 21:13:26 +03:00
test and test_utils: Make compliant with ANSI C
This commit is contained in:
4
test.c
4
test.c
@@ -82,7 +82,7 @@ struct record
|
||||
};
|
||||
|
||||
/* Create a bunch of objects as demonstration. */
|
||||
void create_objects()
|
||||
void create_objects(void)
|
||||
{
|
||||
/* declare a few. */
|
||||
cJSON *root;
|
||||
@@ -231,7 +231,7 @@ void create_objects()
|
||||
free(out);
|
||||
}
|
||||
|
||||
int main (int argc, const char *argv[])
|
||||
int main(void)
|
||||
{
|
||||
/* a bunch of json: */
|
||||
char text1[] =
|
||||
|
||||
Reference in New Issue
Block a user