Browse Source

update indentation

tags/json-c-0.13-20171207
Emiel Bruijntjes 9 years ago
parent
commit
827f0fd8ef
1 changed files with 2 additions and 0 deletions
  1. +2
    -0
      json_object.c

+ 2
- 0
json_object.c View File

@@ -161,11 +161,13 @@ static int json_escape_str(struct printbuf *pb, const char *str, int len)
extern struct json_object* json_object_get(struct json_object *jso) extern struct json_object* json_object_get(struct json_object *jso)
{ {
if (!jso) return jso; if (!jso) return jso;

#if defined __GNUC__ #if defined __GNUC__
__sync_add_and_fetch(&jso->_ref_count, 1); __sync_add_and_fetch(&jso->_ref_count, 1);
#else #else
++jso->_ref_count; ++jso->_ref_count;
#endif #endif

return jso; return jso;
} }




Loading…
Cancel
Save