diff options
author | Petr Štetiar <ynezz@true.cz> | 2019-12-12 10:05:48 +0100 |
---|---|---|
committer | Petr Štetiar <ynezz@true.cz> | 2019-12-16 23:39:16 +0100 |
commit | c413be9b376c685e4a5b04b1d0d9d716dfbeb460 (patch) | |
tree | 634c293e2bb885841f5e6a2c2c620882ac526d89 /libubus-io.c | |
parent | afd47189e8644aacc411628f35d098db6d971a46 (diff) | |
download | ubus-c413be9b376c685e4a5b04b1d0d9d716dfbeb460.tar.gz |
refactor ubusd.c into reusable ubusd_library
In order to allow reusability in unit testing & fuzzing.
Signed-off-by: Petr Štetiar <ynezz@true.cz>
Diffstat (limited to 'libubus-io.c')
-rw-r--r-- | libubus-io.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libubus-io.c b/libubus-io.c index 120fb60..81c1cd1 100644 --- a/libubus-io.c +++ b/libubus-io.c @@ -215,7 +215,7 @@ static int recv_retry(struct ubus_context *ctx, struct iovec *iov, bool wait, in return total; } -static bool ubus_validate_hdr(struct ubus_msghdr *hdr) +bool ubus_validate_hdr(struct ubus_msghdr *hdr) { struct blob_attr *data = (struct blob_attr *) (hdr + 1); |