From c5694db1adfac0288b464b7c4345858af7608b4b Mon Sep 17 00:00:00 2001 From: Roland Illig Date: Mon, 16 Aug 2004 16:58:18 +0000 Subject: [PATCH] Replaced "-1" by INADDR_NONE. --- vfs/mcserv.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vfs/mcserv.c b/vfs/mcserv.c index a10427a61..7a7e92b98 100644 --- a/vfs/mcserv.c +++ b/vfs/mcserv.c @@ -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));