projects
/
project
/
rpcd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c8c8f7d
)
file: handle return output of b64_decode
author
Luka Perkov
<
[email protected]
>
Tue, 12 Apr 2016 08:56:21 +0000
(10:56 +0200)
committer
Jo-Philipp Wich
<
[email protected]
>
Tue, 12 Apr 2016 15:15:08 +0000
(17:15 +0200)
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 <
[email protected]
>
file.c
patch
|
blob
|
history
diff --git
a/file.c
b/file.c
index 91a55a15a789e50c885d614fc246985fa7aa4cb9..b17692a9794fde4bdc9264011f5c1ba544aaae71 100644
(file)
--- a/
file.c
+++ b/
file.c
@@
-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;
+ s
s
ize_t data_len = 0;
blobmsg_parse(rpc_file_rw_policy, __RPC_F_RW_MAX, tb,
blob_data(msg), blob_len(msg));