diff options
| author | Donatas Abraitis <donatas@opensourcerouting.org> | 2023-09-29 09:17:56 +0300 | 
|---|---|---|
| committer | Donatas Abraitis <donatas@opensourcerouting.org> | 2023-09-29 10:24:16 +0300 | 
| commit | 02d8b80ce4cc4a741ac796df453668b43b3e5d0f (patch) | |
| tree | d239cb951d40fb8da5e1402863719660d5b55be6 /zebra | |
| parent | c323b930eaeb779a973e95b1202223164a5e2b02 (diff) | |
*: Do not cast to the same type as the destination is
Signed-off-by: Donatas Abraitis <donatas@opensourcerouting.org>
Diffstat (limited to 'zebra')
| -rw-r--r-- | zebra/tc_netlink.c | 6 | 
1 files changed, 3 insertions, 3 deletions
diff --git a/zebra/tc_netlink.c b/zebra/tc_netlink.c index d0f4ed6d18..d633c07770 100644 --- a/zebra/tc_netlink.c +++ b/zebra/tc_netlink.c @@ -160,7 +160,7 @@ static ssize_t netlink_qdisc_msg_encode(int cmd, struct zebra_dplane_ctx *ctx,  		struct nlmsghdr n;  		struct tcmsg t;  		char buf[0]; -	} *req = (void *)data; +	} *req = data;  	if (datalen < sizeof(*req))  		return 0; @@ -236,7 +236,7 @@ static ssize_t netlink_tclass_msg_encode(int cmd, struct zebra_dplane_ctx *ctx,  		struct nlmsghdr n;  		struct tcmsg t;  		char buf[0]; -	} *req = (void *)data; +	} *req = data;  	if (datalen < sizeof(*req))  		return 0; @@ -486,7 +486,7 @@ static ssize_t netlink_tfilter_msg_encode(int cmd, struct zebra_dplane_ctx *ctx,  		struct nlmsghdr n;  		struct tcmsg t;  		char buf[0]; -	} *req = (void *)data; +	} *req = data;  	if (datalen < sizeof(*req))  		return 0;  | 
