<feed xmlns='http://www.w3.org/2005/Atom'>
<title>ubus/examples, branch master</title>
<subtitle>OpenWrt system message/RPC bus</subtitle>
<id>https://git.openwrt.org/project/ubus/atom?h=master</id>
<link rel='self' href='https://git.openwrt.org/project/ubus/atom?h=master'/>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/project/ubus/'/>
<updated>2025-10-07T12:19:15Z</updated>
<entry>
<title>examples: CMakeLists: drop redundant cmake_minimum_required</title>
<updated>2025-10-07T12:19:15Z</updated>
<author>
<name>David Härdeman</name>
</author>
<published>2025-10-05T15:42:59Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/project/ubus/commit/?id=f247c18f8a552b87f74427df5ef8c43f8f942628'/>
<id>urn:sha1:f247c18f8a552b87f74427df5ef8c43f8f942628</id>
<content type='text'>
The examples depend on the parent ubus project and can't be built
independently.

Drop redundant cmake_minimum_required from examples/CMakeLists.txt
and inherit the version from the parent CMake project to keep
version consistency.

Signed-off-by: David Härdeman &lt;david@hardeman.nu&gt;
Link: https://github.com/openwrt/ubus/pull/7
Signed-off-by: Christian Marangi &lt;ansuelsmth@gmail.com&gt;
</content>
</entry>
<entry>
<title>examples: CMakeLists: update cmake minimum required version to 3.10</title>
<updated>2025-10-03T22:07:38Z</updated>
<author>
<name>Christian Marangi</name>
</author>
<published>2025-10-03T22:07:38Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/project/ubus/commit/?id=2b69c9859946af32cbe89173b71bcecbd1761734'/>
<id>urn:sha1:2b69c9859946af32cbe89173b71bcecbd1761734</id>
<content type='text'>
New cmake version 4.0 requires at least 3.5 version as the minimum
required version with it increased to 3.10 in to-be-released cmake
versions.

Set the minimum required version to 3.10 to future-proof for future
cmake version.

Suggested-by: Hannu Nyman &lt;hannu.nyman@iki.fi&gt;
Signed-off-by: Christian Marangi &lt;ansuelsmth@gmail.com&gt;
</content>
</entry>
<entry>
<title>examples: remove dead increments</title>
<updated>2019-12-16T22:39:16Z</updated>
<author>
<name>Petr Štetiar</name>
</author>
<published>2019-12-11T12:31:59Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/project/ubus/commit/?id=afd47189e8644aacc411628f35d098db6d971a46'/>
<id>urn:sha1:afd47189e8644aacc411628f35d098db6d971a46</id>
<content type='text'>
Fixes following error reported by clang-9 analyzer:

 examples/server.c:244:2: warning: Value stored to 'argc' is never read
        argc -= optind;
        ^       ~~~~~~

 examples/server.c:245:2: warning: Value stored to 'argv' is never read
        argv += optind;
        ^       ~~~~~~

Signed-off-by: Petr Štetiar &lt;ynezz@true.cz&gt;
</content>
</entry>
<entry>
<title>iron out all extra compiler warnings</title>
<updated>2019-12-16T22:39:16Z</updated>
<author>
<name>Petr Štetiar</name>
</author>
<published>2019-12-11T09:36:36Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/project/ubus/commit/?id=d2e026a33df81f116ceb2567056346f38d139706'/>
<id>urn:sha1:d2e026a33df81f116ceb2567056346f38d139706</id>
<content type='text'>
clang-9 on x86/64 has reported following warnings/errors:

 libubus-acl.c:123:2: error: comparison of integers of different signs: 'size_t' (aka 'unsigned long') and 'int' [-Werror,-Wsign-compare]
 libubus-io.c:108:18: error: comparison of integers of different signs: 'int' and 'size_t' (aka 'unsigned long') [-Werror,-Wsign-compare]
 libubus-io.c:395:56: error: comparison of integers of different signs: 'ssize_t' (aka 'long') and 'size_t' (aka 'unsigned long') [-Werror,-Wsign-compare]
 libubus-req.c:441:4: error: comparison of integers of different signs: 'size_t' (aka 'unsigned long') and 'int' [-Werror,-Wsign-compare]
 ubusd_acl.c:119:18: error: comparison of integers of different signs: 'int' and 'unsigned long' [-Werror,-Wsign-compare]
 ubusd_acl.c:152:5: error: comparison of integers of different signs: 'size_t' (aka 'unsigned long') and 'int' [-Werror,-Wsign-compare]
 ubusd_acl.c:348:3: error: comparison of integers of different signs: 'size_t' (aka 'unsigned long') and 'int' [-Werror,-Wsign-compare]
 ubusd_acl.c:352:3: error: comparison of integers of different signs: 'size_t' (aka 'unsigned long') and 'int' [-Werror,-Wsign-compare]
 ubusd_acl.c:357:3: error: comparison of integers of different signs: 'size_t' (aka 'unsigned long') and 'int' [-Werror,-Wsign-compare]
 ubusd_acl.c:362:3: error: comparison of integers of different signs: 'size_t' (aka 'unsigned long') and 'int' [-Werror,-Wsign-compare]
 ubusd_acl.c:367:3: error: comparison of integers of different signs: 'size_t' (aka 'unsigned long') and 'int' [-Werror,-Wsign-compare]
 ubusd_acl.c:447:16: error: comparison of integers of different signs: 'int' and '__size_t' (aka 'unsigned long') [-Werror,-Wsign-compare]
 ubusd_acl.c:502:18: error: comparison of integers of different signs: 'int' and 'unsigned long' [-Werror,-Wsign-compare]
 ubusd.c:123:13: error: comparison of integers of different signs: 'int' and 'unsigned long' [-Werror,-Wsign-compare]
 ubusd.c:170:15: error: comparison of integers of different signs: 'int' and 'unsigned long' [-Werror,-Wsign-compare]
 ubusd.c:262:43: error: comparison of integers of different signs: 'int' and 'unsigned long' [-Werror,-Wsign-compare]
 ubusd.c:287:30: error: comparison of integers of different signs: 'int' and 'unsigned long' [-Werror,-Wsign-compare]
 ubusd_event.c:170:18: error: comparison of integers of different signs: 'int' and 'unsigned long' [-Werror,-Wsign-compare]
 ubusd_obj.c:71:2: error: comparison of integers of different signs: 'size_t' (aka 'unsigned long') and 'int' [-Werror,-Wsign-compare]

Signed-off-by: Petr Štetiar &lt;ynezz@true.cz&gt;
</content>
</entry>
<entry>
<title>cmake: Fix find_library for ubusd and examples/server</title>
<updated>2016-07-01T13:12:28Z</updated>
<author>
<name>Florian Fainelli</name>
</author>
<published>2016-07-01T21:57:44Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/project/ubus/commit/?id=053be7df871e05478284235732f8b0608089512f'/>
<id>urn:sha1:053be7df871e05478284235732f8b0608089512f</id>
<content type='text'>
Both ubusd and cli TARGET_LINK_LIBRARIES reference ${json} which is
obtained via find_library(), but since the find_library() is searched
after the TARGET_LINK_LIBRARIES for ubusd, ubusd always gets an empty
${json} variable.

examples/server also links against libjson-c, but we were not setting
TARGET_LINK_LIBRARIES accordingly, so do that too with ${json} appended.

This was causing linking errors for ubusd and then examples/server using
an external toolchain (stbgcc-4.8-1.x).

Fixes: 9f52d1769b762 ("cli: use the new json-c library name")
Signed-off-by: Florian Fainelli &lt;f.fainelli@gmail.com&gt;
</content>
</entry>
<entry>
<title>cmake: Add ubox, blobmsg_json libraries and include dirs lookup</title>
<updated>2016-03-07T08:38:04Z</updated>
<author>
<name>Petr Štetiar</name>
</author>
<published>2016-03-05T13:59:33Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/project/ubus/commit/?id=fcf5d8af65f41d6a106ad08d1df5de9729f5399a'/>
<id>urn:sha1:fcf5d8af65f41d6a106ad08d1df5de9729f5399a</id>
<content type='text'>
Otherwise cmake uses files from system which sometimes isn't wanted, ie.
for testing.

Signed-off-by: Petr Å tetiar &lt;ynezz@true.cz&gt;
</content>
</entry>
<entry>
<title>ubus: Fix memleak in examples/client in case of failure</title>
<updated>2015-05-08T10:06:39Z</updated>
<author>
<name>Hans Dedecker</name>
</author>
<published>2015-04-28T14:07:28Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/project/ubus/commit/?id=38174a05a58629faf4b86a6dd34c00bb8c6904f2'/>
<id>urn:sha1:38174a05a58629faf4b86a6dd34c00bb8c6904f2</id>
<content type='text'>
Signed-off-by: Hans Dedecker &lt;dedeckeh@gmail.com&gt;
</content>
</entry>
<entry>
<title>ubus: Fix issues reported by static code analysis tool Klocwork</title>
<updated>2015-04-20T13:43:19Z</updated>
<author>
<name>Hans Dedecker</name>
</author>
<published>2015-04-13T16:18:36Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/project/ubus/commit/?id=7798d56301b7264cbcea0a6a9225a210154c693a'/>
<id>urn:sha1:7798d56301b7264cbcea0a6a9225a210154c693a</id>
<content type='text'>
Signed-off-by: Hans Dedecker &lt;dedeckeh@gmail.com&gt;
</content>
</entry>
<entry>
<title>libubus: fix build error in examples/server</title>
<updated>2014-09-17T11:29:30Z</updated>
<author>
<name>Zefir Kurtisi</name>
</author>
<published>2014-09-17T10:33:32Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/project/ubus/commit/?id=9841dae95adf0fdde66b12bc4e42975d4661a3ce'/>
<id>urn:sha1:9841dae95adf0fdde66b12bc4e42975d4661a3ce</id>
<content type='text'>
This fixes build warning:
/ubus.git/examples/server.c: In function 'test_hello_reply':
/ubus.git/examples/server.c:69:6: error: ignoring return value of 'pipe', declared with attribute warn_unused_result [-Werror=unused-result]

Signed-off-by: Zefir Kurtisi &lt;zefir.kurtisi@neratec.com&gt;
</content>
</entry>
<entry>
<title>ubus: add count test to validate large message sizes</title>
<updated>2014-07-03T10:47:11Z</updated>
<author>
<name>Alexandru Ardelean</name>
</author>
<published>2014-06-27T16:11:45Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/project/ubus/commit/?id=af63ab64af10798468ca1453de2360fcda44aab9'/>
<id>urn:sha1:af63ab64af10798468ca1453de2360fcda44aab9</id>
<content type='text'>
Client creates a string "1 2 3 ... 10000 ...", sends it to the server
along with the maximum number in the string.

Server creates another string like the client sent.

It validates it and, returns strcmp()'s result.

This is loop-ed every 2 seconds.
</content>
</entry>
</feed>
