stringbuf.c: chipped away at style modernization
[citadel.git] / libcitadel / lib / json.c
index ff649f75a07d6754c5a7c75830e7c8b6bebbff46..d664700fa4850ef5d7e5426af9981fb7e5c0181d 100644 (file)
@@ -141,8 +141,7 @@ JsonValue *NewJsonNull(const char *Key, long keylen) {
        Ret = (JsonValue*) malloc(sizeof(JsonValue));
        memset(Ret, 0, sizeof(JsonValue));
        Ret->Type = JSON_NULL;
-       if (Key != NULL)
-       {
+       if (Key != NULL) {
                Ret->Name = NewStrBufPlain(Key, keylen);
        }
        Ret->Value = NewStrBufPlain(HKEY("nulll"));
@@ -195,9 +194,7 @@ void SerializeJson(StrBuf *Target, JsonValue *Val, int FreeVal) {
        const char *Key;
        long keylen;
 
-
-       switch (Val->Type)
-       {
+       switch (Val->Type) {
        case JSON_STRING:
                StrBufAppendBufPlain(Target, HKEY("\""), 0);
                StrECMAEscAppend(Target, Val->Value, NULL);