From 2a9f5ccd7554e4226cc70311365a3e37d0a7f218 Mon Sep 17 00:00:00 2001 From: rafagafe Date: Mon, 3 Apr 2017 02:42:52 +0200 Subject: [PATCH] Refactor dump function identifier. --- example-02.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/example-02.c b/example-02.c index 9861771..ecae1b1 100644 --- a/example-02.c +++ b/example-02.c @@ -48,7 +48,7 @@ static char const* getJsonTypeName( jsonType_t type ) { /** Print the value os a json object or array. * @param json The handler of the json object or array. */ -static void print( json_t const* json ) { +static void dump( json_t const* json ) { jsonType_t const type = json_getType( json ); if ( type != JSON_OBJ && type != JSON_ARRAY ) { @@ -66,7 +66,7 @@ static void print( json_t const* json ) { if ( name ) printf(" \"%s\": ", name ); if ( propertyType == JSON_OBJ || propertyType == JSON_ARRAY ) - print( child ); + dump( child ); else { char const* value = json_getValue( child ); @@ -109,6 +109,6 @@ int main( void ) { return EXIT_FAILURE; } puts("Print JSON:"); - print( json ); + dump( json ); return EXIT_SUCCESS; }