diff mbox series

json: update internal type definition to match JSMN

Message ID 20221102184600.230988-1-prestwoj@gmail.com (mailing list archive)
State New
Headers show
Series json: update internal type definition to match JSMN | expand

Checks

Context Check Description
tedd_an/pre-ci_am success Success
prestwoj/iwd-alpine-ci-fetch success Fetch PR
prestwoj/iwd-ci-gitlint success GitLint
prestwoj/iwd-ci-fetch success Fetch PR
prestwoj/iwd-ci-makedistcheck fail Make Distcheck Make FAIL: ../../build-aux/test-driver: line 112: 25660 Aborted (core dumped) "$@" >> "$log_file" 2>&1 make[4]: *** [Makefile:2798: test-suite.log] Error 1 make[3]: *** [Makefile:2906: check-TESTS] Error 2 make[2]: *** [Makefile:3263: check-am] Error 2 make[1]: *** [Makefile:3265: check] Error 2 make: *** [Makefile:3184: distcheck] Error 1
prestwoj/iwd-ci-incremental_build success Incremental build not run PASS
prestwoj/iwd-ci-build success Build - Configure
prestwoj/iwd-alpine-ci-makedistcheck fail Make Distcheck Make FAIL: ../../build-aux/test-driver: line 112: 20689 Aborted (core dumped) "$@" >> "$log_file" 2>&1 make[4]: *** [Makefile:2799: test-suite.log] Error 1 make[3]: *** [Makefile:2907: check-TESTS] Error 2 make[2]: *** [Makefile:3264: check-am] Error 2 make[1]: *** [Makefile:3266: check] Error 2 make: *** [Makefile:3185: distcheck] Error 1
prestwoj/iwd-alpine-ci-incremental_build success Incremental build not run PASS
prestwoj/iwd-alpine-ci-build success Build - Configure
prestwoj/iwd-ci-clang success clang PASS
prestwoj/iwd-ci-makecheckvalgrind fail Make Check FAIL: ./build-aux/test-driver: line 112: 56792 Aborted (core dumped) "$@" >> "$log_file" 2>&1 make[3]: *** [Makefile:2798: test-suite.log] Error 1 make[2]: *** [Makefile:2906: check-TESTS] Error 2 make[1]: *** [Makefile:3263: check-am] Error 2 make: *** [Makefile:3265: check] Error 2
prestwoj/iwd-ci-makecheck fail Make Check FAIL: ./build-aux/test-driver: line 112: 57112 Aborted (core dumped) "$@" >> "$log_file" 2>&1 make[3]: *** [Makefile:2798: test-suite.log] Error 1 make[2]: *** [Makefile:2906: check-TESTS] Error 2 make[1]: *** [Makefile:3263: check-am] Error 2 make: *** [Makefile:3265: check] Error 2
prestwoj/iwd-alpine-ci-makecheck fail Make Check FAIL: ./build-aux/test-driver: line 112: 38090 Aborted (core dumped) "$@" >> "$log_file" 2>&1 make[3]: *** [Makefile:2799: test-suite.log] Error 1 make[2]: *** [Makefile:2907: check-TESTS] Error 2 make[1]: *** [Makefile:3264: check-am] Error 2 make: *** [Makefile:3266: check] Error 2
prestwoj/iwd-alpine-ci-makecheckvalgrind fail Make Check FAIL: ./build-aux/test-driver: line 112: 38195 Aborted (core dumped) "$@" >> "$log_file" 2>&1 make[3]: *** [Makefile:2799: test-suite.log] Error 1 make[2]: *** [Makefile:2907: check-TESTS] Error 2 make[1]: *** [Makefile:3264: check-am] Error 2 make: *** [Makefile:3266: check] Error 2
prestwoj/iwd-ci-testrunner success test-runner PASS

Commit Message

James Prestwood Nov. 2, 2022, 6:46 p.m. UTC
Fixes: ceda955ba7 ("shared: Update JSMN to latest version")
---
 src/json.h | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

Comments

James Prestwood Nov. 2, 2022, 6:50 p.m. UTC | #1
On Wed, 2022-11-02 at 11:46 -0700, James Prestwood wrote:
> Fixes: ceda955ba7 ("shared: Update JSMN to latest version")
> ---
>  src/json.h | 8 ++++----
>  1 file changed, 4 insertions(+), 4 deletions(-)
> 
> diff --git a/src/json.h b/src/json.h
> index c6220667..8cf2ba03 100644
> --- a/src/json.h
> +++ b/src/json.h
> @@ -27,10 +27,10 @@ struct json_iter;
>   */
>  enum json_type {
>         JSON_UNDEFINED = 0,
> -       JSON_OBJECT = 1,
> -       JSON_ARRAY = 2,
> -       JSON_STRING = 3,
> -       JSON_PRIMITIVE = 4
> +       JSON_OBJECT = 1 << 0,
> +       JSON_ARRAY = 1 << 1,
> +       JSON_STRING = 1 << 2,
> +       JSON_PRIMITIVE = 1 << 4,

Whoops, this should be 1 << 3. I can send v2 or just fix this up when
applying?

>  };
>  
>  enum json_flag {
Denis Kenzior Nov. 2, 2022, 8:04 p.m. UTC | #2
Hi James,

On 11/2/22 13:50, James Prestwood wrote:
> On Wed, 2022-11-02 at 11:46 -0700, James Prestwood wrote:
>> Fixes: ceda955ba7 ("shared: Update JSMN to latest version")
>> ---
>>   src/json.h | 8 ++++----
>>   1 file changed, 4 insertions(+), 4 deletions(-)
>>
> 
> Whoops, this should be 1 << 3. I can send v2 or just fix this up when
> applying?
> 

I fixed this up and applied.

Regards,
-Denis
diff mbox series

Patch

diff --git a/src/json.h b/src/json.h
index c6220667..8cf2ba03 100644
--- a/src/json.h
+++ b/src/json.h
@@ -27,10 +27,10 @@  struct json_iter;
  */
 enum json_type {
 	JSON_UNDEFINED = 0,
-	JSON_OBJECT = 1,
-	JSON_ARRAY = 2,
-	JSON_STRING = 3,
-	JSON_PRIMITIVE = 4
+	JSON_OBJECT = 1 << 0,
+	JSON_ARRAY = 1 << 1,
+	JSON_STRING = 1 << 2,
+	JSON_PRIMITIVE = 1 << 4,
 };
 
 enum json_flag {