diff options
author | Luka Perkov <luka@openwrt.org> | 2016-04-12 10:56:21 +0200 |
---|---|---|
committer | Jo-Philipp Wich <jo@mein.io> | 2016-04-12 17:15:08 +0200 |
commit | 2350c6fa914eedae456f3406c8ece8f31e06660a (patch) | |
tree | f6fa3d49b4ec72f5c3aa0e17f6be4a0b15d25dbd | |
parent | c8c8f7d0146f1aa1c5692c7b6717b794c347f3d4 (diff) | |
download | rpcd-2350c6fa914eedae456f3406c8ece8f31e06660a.tar.gz |
file: handle return output of b64_decode
Solve this compile warning:
file.c:300:16: error: comparison of unsigned expression < 0 is always false [-Werror,-Wtautological-compare]
if (data_len < 0)
Signed-off-by: Luka Perkov <luka@openwrt.org>
-rw-r--r-- | file.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -271,7 +271,7 @@ rpc_file_write(struct ubus_context *ctx, struct ubus_object *obj, mode_t prev_mode, mode = 0666; int fd, rv = 0; void *data = NULL; - size_t data_len = 0; + ssize_t data_len = 0; blobmsg_parse(rpc_file_rw_policy, __RPC_F_RW_MAX, tb, blob_data(msg), blob_len(msg)); |