Author: janderwald Date: Mon Dec 4 00:33:17 2006 New Revision: 25054
URL: http://svn.reactos.org/svn/reactos?rev=25054&view=rev Log: - fix msvc compile problems
Modified: trunk/reactos/base/applications/network/ftp/ftp.c
Modified: trunk/reactos/base/applications/network/ftp/ftp.c URL: http://svn.reactos.org/svn/reactos/trunk/reactos/base/applications/network/f... ============================================================================== --- trunk/reactos/base/applications/network/ftp/ftp.c (original) +++ trunk/reactos/base/applications/network/ftp/ftp.c Mon Dec 4 00:33:17 2006 @@ -159,7 +159,7 @@ (void) fflush(stdout); (void) close(s); s = socket(hisctladdr.sin_family, SOCK_STREAM, 0); - if (s < 0) { + if (s == INVALID_SOCKET) { perror("ftp: socket"); code = -1; return (0); @@ -781,7 +781,7 @@ } null();// oldintr = signal(SIGINT, abortrecv); if (strcmp(local, "-") && *local != '|') { -#ifndef __WIN32__ +#ifndef _WIN32 // This whole thing is a problem... access Won't work on non-existent files if (access(local, 2) < 0) { char *dir = rindex(local, '/');