- fix msvc compile problems

svn path=/trunk/; revision=25054
This commit is contained in:
Johannes Anderwald 2006-12-03 21:33:17 +00:00
parent 8dde1987db
commit 06d8efb11c

View file

@ -159,7 +159,7 @@ char *hookup(char *host, int port)
(void) fflush(stdout); (void) fflush(stdout);
(void) close(s); (void) close(s);
s = socket(hisctladdr.sin_family, SOCK_STREAM, 0); s = socket(hisctladdr.sin_family, SOCK_STREAM, 0);
if (s < 0) { if (s == INVALID_SOCKET) {
perror("ftp: socket"); perror("ftp: socket");
code = -1; code = -1;
return (0); return (0);
@ -781,7 +781,7 @@ null();// (void) signal(SIGINT, oldintr);
} }
null();// oldintr = signal(SIGINT, abortrecv); null();// oldintr = signal(SIGINT, abortrecv);
if (strcmp(local, "-") && *local != '|') { if (strcmp(local, "-") && *local != '|') {
#ifndef __WIN32__ #ifndef _WIN32
// This whole thing is a problem... access Won't work on non-existent files // This whole thing is a problem... access Won't work on non-existent files
if (access(local, 2) < 0) { if (access(local, 2) < 0) {
char *dir = rindex(local, '/'); char *dir = rindex(local, '/');