X-Git-Url: http://git.archive.openwrt.org/?p=project%2Fubus.git;a=blobdiff_plain;f=libubus-internal.h;h=0eddf9e1b382a03fa0e36068009abc9ff8b110b0;hp=f6d850f17f60b8ed99a3977d564fc138d1eeb89a;hb=6280cbaf0966928c4f83b925fb5b94c3ecb1936e;hpb=382a05f54d12190171b8f847773c78dc27e9b205 diff --git a/libubus-internal.h b/libubus-internal.h index f6d850f..0eddf9e 100644 --- a/libubus-internal.h +++ b/libubus-internal.h @@ -20,7 +20,7 @@ extern const struct ubus_method watch_method; static inline struct blob_attr * 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; }