An ubus RPC daemon for Liminix
Find a file
Florian Fainelli 26c98ec94d sys: Check return values of chdir and write
Fixes the following warnings:

rpcd/sys.c: In function 'rpc_cgi_password_set':
rpcd/sys.c:116:8: error: ignoring return value of 'chdir', declared with attribute warn_unused_result [-Werror=unused-result]
   chdir("/");
        ^
rpcd/sys.c:125:8: error: ignoring return value of 'write', declared with attribute warn_unused_result [-Werror=unused-result]
   write(fds[1], blobmsg_data(tb[RPC_P_PASSWORD]),
        ^
rpcd/sys.c:127:8: error: ignoring return value of 'write', declared with attribute warn_unused_result [-Werror=unused-result]
   write(fds[1], "\n", 1);
        ^
rpcd/sys.c:131:8: error: ignoring return value of 'write', declared with attribute warn_unused_result [-Werror=unused-result]
   write(fds[1], blobmsg_data(tb[RPC_P_PASSWORD]),
        ^
rpcd/sys.c:133:8: error: ignoring return value of 'write', declared with attribute warn_unused_result [-Werror=unused-result]
   write(fds[1], "\n", 1);
        ^
cc1: all warnings being treated as errors

Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
2016-12-11 09:15:27 +01:00
include/rpcd fix for json 0.12 2015-03-08 15:04:13 +01:00
CMakeLists.txt cmake: Find libubus.h 2016-07-27 17:28:46 +02:00
exec.c Extend copyright 2014-01-12 12:48:58 +00:00
file.c file: add myself in Copyright header 2016-04-12 17:15:27 +02:00
iwinfo.c iwinfo: expose available HT rates 2016-06-30 00:36:01 +02:00
main.c paths: substitute literal with macro 2015-11-20 18:00:28 +01:00
plugin.c properly handle return codes 2015-03-28 18:36:40 +01:00
session.c properly handle return codes 2015-03-28 18:36:40 +01:00
sys.c sys: Check return values of chdir and write 2016-12-11 09:15:27 +01:00
uci.c uci: allow setting zero-length values (to delete an option) 2015-11-23 19:11:44 +01:00
unauthenticated.json session: setup a persistent NULL section and implement login procedure 2013-09-10 19:56:36 +02:00