libubus: use explicit type name in ubus_msghdr_data instead of typeof()
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
This commit is contained in:
parent
382a05f54d
commit
f688c7ad0b
1 changed files with 1 additions and 1 deletions
|
@ -20,7 +20,7 @@ extern const struct ubus_method watch_method;
|
||||||
static inline struct blob_attr *
|
static inline struct blob_attr *
|
||||||
ubus_msghdr_data(struct ubus_msghdr *hdr)
|
ubus_msghdr_data(struct ubus_msghdr *hdr)
|
||||||
{
|
{
|
||||||
struct ubus_msghdr_buf *hdrbuf = container_of(hdr, typeof(*hdrbuf), hdr);
|
struct ubus_msghdr_buf *hdrbuf = container_of(hdr, struct ubus_msghdr_buf, hdr);
|
||||||
return hdrbuf->data;
|
return hdrbuf->data;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue