[PATCH v2] libubox: fix BLOBMSG_CAST_INT64 (do not override BLOBMSG_TYPE_DOUBLE)

2021-02-26 Thread Peter Seiderer
_BOOL: 7 BLOBMSG_CAST_INT64: 8 Fix this by changing the enum defintion to assign BLOBMSG_CAST_INT64 to the unique value 9. Signed-off-by: Peter Seiderer --- Changes v1 -> v2: - re-send after subscribing to the mailing list - change patch subject prefix from blobmsg to libubox --- blobms

[PATCH v1 2/2] libubox: tests: add more blobmsg/json test cases

2021-03-06 Thread Peter Seiderer
* add mixed int/double tests * add blobmsg_cast_u64/blobmsg_cast_s64 tests Signed-off-by: Peter Seiderer --- tests/cram/test_blobmsg_types.t | 82 +++ tests/test-blobmsg-types.c | 371 2 files changed, 453 insertions(+) create mode 100644 tests/cram

[PATCH v1 1/2] libubox: fix test_base64.t for bash

2021-03-06 Thread Peter Seiderer
38.22 sec -- Test Failed. "cram" end time: Mar 06 11:37 CET "cram" time elapsed: 00:00:38 -- [...] My shell/bash seems to emit a more detailed failure me

Re: [PATCH v1 2/2] libubox: tests: add more blobmsg/json test cases

2021-03-09 Thread Peter Seiderer
Hello Petr, On Sun, 7 Mar 2021 11:30:28 +0100, Petr Štetiar wrote: > Peter Seiderer [2021-03-06 11:54:50]: > > Hi, > > nice, just a small nitpicks, these seems fine: > > > + int8_max: 127 > > + int8_min: -128 > > ... > > but the outputs bell

Re: [PATCH v1 1/2] libubox: fix test_base64.t for bash

2021-03-09 Thread Peter Seiderer
Hello Petr, On Sun, 7 Mar 2021 11:27:11 +0100, Petr Štetiar wrote: > Peter Seiderer [2021-03-06 11:54:49]: > > Hi, > > thanks a lot for your nice contribution! > > > My shell/bash seems to emit a more detailed failure message than > > expected. Fix this by

Re: libubox: How to terminate uloop orderly?

2022-05-19 Thread Peter Seiderer
Hello Alexander, On Tue, 17 May 2022 12:37:00 +0300, Alexandru Ardelean wrote: > On Tue, May 17, 2022 at 12:06 PM Koch, Alexander via openwrt-devel > wrote: > > > > The sender domain has a DMARC Reject/Quarantine policy which disallows > > sending mailing list messages using the original "From

[PATCH uqmi v1] uqmi: avoid gcc false error reporting (storing the address of local variable 'complete' in '*req.complete')

2023-03-05 Thread Peter Seiderer
q->complete = &complete; | ~~^~~~~~~ Signed-off-by: Peter Seiderer --- dev.c | 12 1 file changed, 12 insertions(+) diff --git a/dev.c b/dev.c index bd10207..b8ac273 100644 --- a/dev.c +++ b/dev.c @@ -203,6 +203,15 @@ void qmi_request_cancel(struct qmi_dev

[PATCH uqmi v2] uqmi: avoid gcc-12.x false error reporting (storing the address of local variable 'complete' in '*req.complete')

2023-03-11 Thread Peter Seiderer
q->complete = &complete; | ~~^~~~~~~ Signed-off-by: Peter Seiderer --- Changes v1 -> v2: - apply pragma ignored only for gcc >= 12.x (as the warning '-Wdangling-pointer' was introduced with gcc-12.x) --- dev.c | 12 1 file changed, 12 insertion