summaryrefslogtreecommitdiffstats
path: root/tcpip/ttylinkd.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/ttylinkd.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/ttylinkd.c')
-rw-r--r--tcpip/ttylinkd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tcpip/ttylinkd.c b/tcpip/ttylinkd.c
index f32499c..c530d73 100644
--- a/tcpip/ttylinkd.c
+++ b/tcpip/ttylinkd.c
@@ -308,7 +308,7 @@ int main(int argc, char *argv[])
exit(1);
}
- if (bind(ctl_skt, (struct sockaddr*)&ctl_sin, sizeof(ctl_sin)) != 0)
+ if (bind(ctl_skt, &ctl_sin, sizeof(ctl_sin)) != 0)
{
syslog(LOG_DAEMON | LOG_CRIT, "main(): Error when trying to bind() control socket.");
close(skt);