]> sigrok.org Git - libsigrok.git/commit
ols: Get GString content from proper API calls
authorMarek Vasut <redacted>
Sat, 28 Oct 2023 07:12:48 +0000 (09:12 +0200)
committerGerhard Sittig <redacted>
Sat, 28 Oct 2023 09:14:02 +0000 (11:14 +0200)
commitd41c4131a2dcdb3f1eec7bfc1065e70eb2597158
treecbef1e04fd03f3d84c58ee87c8313ea849a0430a
parent201bd256a8aa85035423023914889fe9f5db52db
ols: Get GString content from proper API calls

Use the g_string_free() routine's return value instead of pulling the
string content out of the buffer structure bypassing the library's API.
This improves portability and readability, also happens to silence an
"ignoring return value" warning which is seen with GCC 13.2.0.

See https://docs.gtk.org/glib/method.String.free.html#return-value for
a discussion of the g_string_free() return value.

Signed-off-by: Marek Vasut <redacted>
src/hardware/openbench-logic-sniffer/protocol.c
src/hardware/pipistrello-ols/protocol.c