diff options
Diffstat (limited to 'tftp.c')
-rw-r--r-- | tftp.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -116,7 +116,7 @@ static inline int tftp(int cmd, struct hostent *host, | |||
116 | len = sizeof(sa); | 116 | len = sizeof(sa); |
117 | 117 | ||
118 | memset(&sa, 0, len); | 118 | memset(&sa, 0, len); |
119 | bind(socketfd, &sa, len); | 119 | bind(socketfd, (struct sockaddr *)&sa, len); |
120 | 120 | ||
121 | sa.sin_family = host->h_addrtype; | 121 | sa.sin_family = host->h_addrtype; |
122 | sa.sin_port = htons(port); | 122 | sa.sin_port = htons(port); |