mirror of
https://github.com/mirror/wget.git
synced 2026-08-22 19:03:27 +08:00
[svn] Fix compilation under pre-C99 compilers.
This commit is contained in:
@@ -1,3 +1,7 @@
|
||||
2003-11-05 Hrvoje Niksic <hniksic@xemacs.org>
|
||||
|
||||
* connect.c (bindport): Fix compilation under pre-C99 compilers.
|
||||
|
||||
2003-11-05 Hrvoje Niksic <hniksic@xemacs.org>
|
||||
|
||||
* connect.c (connect_to_ip): More compact error checking.
|
||||
|
||||
@@ -397,7 +397,6 @@ bindport (const ip_address *bind_address, int *port, int *local_sock)
|
||||
int family = AF_INET;
|
||||
struct sockaddr_storage ss;
|
||||
struct sockaddr *sa = (struct sockaddr *)&ss;
|
||||
xzero (ss);
|
||||
|
||||
/* For setting options with setsockopt. */
|
||||
int setopt_val = 1;
|
||||
@@ -423,6 +422,7 @@ bindport (const ip_address *bind_address, int *port, int *local_sock)
|
||||
# endif
|
||||
#endif
|
||||
|
||||
xzero (ss);
|
||||
sockaddr_set_data (sa, bind_address, *port);
|
||||
if (bind (sock, sa, sockaddr_size (sa)) < 0)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user