diff options
author | Ralf Baechle <ralf@linux-mips.org> | 2017-08-01 03:09:11 +0200 |
---|---|---|
committer | Ralf Baechle <ralf@linux-mips.org> | 2017-08-03 04:21:23 +0200 |
commit | 5e1dd90d814c46ad3ef41053cf7ca3bac6c80466 (patch) | |
tree | f710155614df1195e5c405986c554b5820ccd871 /tcpip/rip98d.c | |
parent | 3ee1ebc7eebcbde2c47c4a92d9a400b172f32d91 (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/rip98d.c')
-rw-r--r-- | tcpip/rip98d.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tcpip/rip98d.c b/tcpip/rip98d.c index 1fcc46c..70b92f1 100644 --- a/tcpip/rip98d.c +++ b/tcpip/rip98d.c @@ -238,7 +238,7 @@ int main(int argc, char **argv) return 1; } - memset((char *)&loc_addr, 0, sizeof(loc_addr)); + memset(&loc_addr, 0, sizeof(loc_addr)); loc_addr.sin_family = AF_INET; loc_addr.sin_addr.s_addr = htonl(INADDR_ANY); loc_addr.sin_port = htons(RIP_PORT); |