summaryrefslogtreecommitdiffstats
path: root/tcpip
diff options
context:
space:
mode:
Diffstat (limited to 'tcpip')
-rw-r--r--tcpip/rip98d.c2
-rw-r--r--tcpip/ttylinkd.c2
2 files changed, 2 insertions, 2 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;
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);