summaryrefslogtreecommitdiffstats
path: root/tcpip/rip98t.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/rip98t.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/rip98t.c')
-rw-r--r--tcpip/rip98t.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tcpip/rip98t.c b/tcpip/rip98t.c
index 502b5f4..00b27d7 100644
--- a/tcpip/rip98t.c
+++ b/tcpip/rip98t.c
@@ -42,7 +42,7 @@ void transmit_routes(int s)
if (debug && logging)
syslog(LOG_DEBUG, "transmit_routes: sending routing message to %s\n", inet_ntoa(dest_list[i].dest_addr));
- memset((char *)&rem_addr, 0, sizeof(rem_addr));
+ memset(&rem_addr, 0, sizeof(rem_addr));
rem_addr.sin_family = AF_INET;
rem_addr.sin_addr = dest_list[i].dest_addr;
rem_addr.sin_port = htons(RIP_PORT);