Replaced "-1" by INADDR_NONE.

This commit is contained in:
Roland Illig 2004-08-16 16:58:18 +00:00
parent 1a62b0a598
commit c5694db1ad

View File

@ -843,7 +843,7 @@ do_ftp_auth (char *username, char *password)
local_address.sin_port = htons (21);
/* Convert localhost to usable format */
if ((inaddr = inet_addr ("127.0.0.1")) != -1)
if ((inaddr = inet_addr ("127.0.0.1")) != INADDR_NONE)
memcpy ((char *) &local_address.sin_addr, (char *) &inaddr,
sizeof (inaddr));