From f688c7ad0b2435a89bfd13f5496cabf596b54c8f Mon Sep 17 00:00:00 2001 From: Felix Fietkau Date: Thu, 3 Jul 2014 20:58:37 +0200 Subject: [PATCH] libubus: use explicit type name in ubus_msghdr_data instead of typeof() Signed-off-by: Felix Fietkau --- libubus-internal.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } -- 2.11.0