From: Emiel Bruijntjes Date: Fri, 27 Nov 2015 15:53:57 +0000 (+0100) Subject: added tabs instead of spaces to be compatible with rest of code X-Git-Tag: json-c-0.13-20171207~59^2~1 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=9d8536767970bb78abc2f0fc26e9ca8fdf35bd6b;p=thirdparty%2Fjson-c.git added tabs instead of spaces to be compatible with rest of code --- diff --git a/json_object.c b/json_object.c index 2b9bef7e..eae0f8a8 100644 --- a/json_object.c +++ b/json_object.c @@ -163,9 +163,9 @@ extern struct json_object* json_object_get(struct json_object *jso) if (!jso) return jso; #if defined __GNUC__ - __sync_add_and_fetch(&jso->_ref_count, 1); + __sync_add_and_fetch(&jso->_ref_count, 1); #else - ++jso->_ref_count; + ++jso->_ref_count; #endif return jso; @@ -176,15 +176,15 @@ int json_object_put(struct json_object *jso) if(!jso) return 0; #if defined __GNUC__ - if (__sync_fetch_and_sub(&jso->_ref_count, 1) > 0) return 0; + if (__sync_fetch_and_sub(&jso->_ref_count, 1) > 0) return 0; #else - if (--jso->_ref_count > 0) return 0; + if (--jso->_ref_count > 0) return 0; #endif - if (jso->_user_delete) - jso->_user_delete(jso, jso->_userdata); - jso->_delete(jso); - return 1; + if (jso->_user_delete) + jso->_user_delete(jso, jso->_userdata); + jso->_delete(jso); + return 1; }