From 5e1dd90d814c46ad3ef41053cf7ca3bac6c80466 Mon Sep 17 00:00:00 2001 From: Ralf Baechle Date: Tue, 1 Aug 2017 03:09:11 +0200 Subject: 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 --- tcpip/rip98t.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tcpip/rip98t.c') 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); -- cgit v1.2.3