From 680f2fb39d0215a7772d13cf04a11e6bc3263676 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Zbigniew=20J=C4=99drzejewski-Szmek?= Date: Fri, 6 May 2022 14:37:01 +0200 Subject: [PATCH] shared/json: disentangle flag mixup MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit _DEBUG and _RELAX had the same value… I'm not sure what the effect of this is. --- src/shared/json.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/shared/json.h b/src/shared/json.h index 8760354b661..91d02a911e1 100644 --- a/src/shared/json.h +++ b/src/shared/json.h @@ -331,9 +331,9 @@ typedef enum JsonDispatchFlags { JSON_SAFE = 1 << 3, /* Don't accept "unsafe" strings in json_dispatch_string() + json_dispatch_string() */ JSON_RELAX = 1 << 4, /* Use relaxed user name checking in json_dispatch_user_group_name */ - /* The following two may be passed into log_json() in addition to the three above */ - JSON_DEBUG = 1 << 4, /* Indicates that this log message is a debug message */ - JSON_WARNING = 1 << 5, /* Indicates that this log message is a warning message */ + /* The following two may be passed into log_json() in addition to those above */ + JSON_DEBUG = 1 << 5, /* Indicates that this log message is a debug message */ + JSON_WARNING = 1 << 6, /* Indicates that this log message is a warning message */ } JsonDispatchFlags; typedef int (*JsonDispatchCallback)(const char *name, JsonVariant *variant, JsonDispatchFlags flags, void *userdata); -- 2.47.3