summaryrefslogtreecommitdiffstats
path: root/tcpip/rip98r.c
diff options
context:
space:
mode:
authorRalf Baechle <ralf@linux-mips.org>2017-08-01 03:09:11 +0200
committerRalf Baechle <ralf@linux-mips.org>2017-08-03 04:21:23 +0200
commit5e1dd90d814c46ad3ef41053cf7ca3bac6c80466 (patch)
treef710155614df1195e5c405986c554b5820ccd871 /tcpip/rip98r.c
parent3ee1ebc7eebcbde2c47c4a92d9a400b172f32d91 (diff)
treewide: Remove useless casts from memset pointer argument.
This is using the following semantic patch: @memset@ type T; expression A, B, C; @@ - memset((T *)A, B, C) + memset(A, B, C) Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Diffstat (limited to 'tcpip/rip98r.c')
-rw-r--r--tcpip/rip98r.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/tcpip/rip98r.c b/tcpip/rip98r.c
index 6082e65..7403898 100644
--- a/tcpip/rip98r.c
+++ b/tcpip/rip98r.c
@@ -206,7 +206,7 @@ void receive_routes(int s)
for (route = first_route; route != NULL; route = route->next) {
if (route->action == DEL_ROUTE) {
- memset((char *)&rt, 0, sizeof(rt));
+ memset(&rt, 0, sizeof(rt));
trg.sin_family = AF_INET;
trg.sin_addr = route->addr;
@@ -222,7 +222,7 @@ void receive_routes(int s)
for (route = first_route; route != NULL; route = route->next) {
if (route->action == NEW_ROUTE) {
- memset((char *)&rt, 0, sizeof(rt));
+ memset(&rt, 0, sizeof(rt));
trg.sin_family = AF_INET;
trg.sin_addr = route->addr;