summaryrefslogtreecommitdiffstats
path: root/tcpip/rip98d.c
diff options
context:
space:
mode:
authorRalf Baechle <ralf@linux-mips.org>2017-08-01 04:22:59 +0200
committerRalf Baechle <ralf@linux-mips.org>2017-08-03 04:21:23 +0200
commit12d884633143d74286a1c5b57d5d4cb186ba7513 (patch)
tree565114bd148de399c8996cc585dcab43800b8a64 /tcpip/rip98d.c
parenta9c535270d1224ff0e23fa6657e52be4659cf1ff (diff)
treewide: Remove useless casts from bind() pointer argument.
This is using the following semantic patch: @bind@ type T; expression A, C; struct sockaddr *B; @@ - bind(A, (struct sockaddr *) B, C) + bind(A, B, C) @bind_in@ type T; expression A, C; struct sockaddr_in *B; @@ - bind(A, (struct sockaddr *) B, C) + bind(A, B, C) Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Diffstat (limited to 'tcpip/rip98d.c')
-rw-r--r--tcpip/rip98d.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tcpip/rip98d.c b/tcpip/rip98d.c
index 70b92f1..50df60e 100644
--- a/tcpip/rip98d.c
+++ b/tcpip/rip98d.c
@@ -243,7 +243,7 @@ int main(int argc, char **argv)
loc_addr.sin_addr.s_addr = htonl(INADDR_ANY);
loc_addr.sin_port = htons(RIP_PORT);
- if (bind(s, (struct sockaddr *)&loc_addr, sizeof(loc_addr)) < 0) {
+ if (bind(s, &loc_addr, sizeof(loc_addr)) < 0) {
perror("rip98d: bind");
close(s);
return 1;