summaryrefslogtreecommitdiffstats
path: root/tcpip/rip98t.c
diff options
context:
space:
mode:
authorRalf Baechle <ralf@linux-mips.org>2017-08-01 03:07:11 +0200
committerRalf Baechle <ralf@linux-mips.org>2017-08-03 04:21:23 +0200
commit3ee1ebc7eebcbde2c47c4a92d9a400b172f32d91 (patch)
treeeac81848fb4e5327e5892cb33fd3493ebeaff4d1 /tcpip/rip98t.c
parent4ae678eaf8a48d548308a57e23df38c7afca8a0e (diff)
treewide: Remove useless casts from memcpy pointer arguments.
This is using the following semantic patch: @memcpy1@ type T; expression A, B, C; @@ - memcpy((T *)A, B, C) + memcpy(A, B, C) @memcpy2@ type T; expression A, B, C; @@ - memcpy(A, (T *)B, C) + memcpy(A, B, C) Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Diffstat (limited to 'tcpip/rip98t.c')
-rw-r--r--tcpip/rip98t.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/tcpip/rip98t.c b/tcpip/rip98t.c
index 9fd78c6..502b5f4 100644
--- a/tcpip/rip98t.c
+++ b/tcpip/rip98t.c
@@ -55,7 +55,9 @@ void transmit_routes(int s)
while (mess_len < 184 && route != NULL) {
if (route->action != DEL_ROUTE) {
- memcpy(message + mess_len + 0, (char *)&route->addr, sizeof(struct in_addr));
+ memcpy(message + mess_len + 0,
+ &route->addr,
+ sizeof(struct in_addr));
message[mess_len + 4] = route->bits;
message[mess_len + 5] = route->metric;