porting fixes

svn path=/trunk/; revision=19481
This commit is contained in:
Steven Edwards 2005-11-23 06:02:15 +00:00
parent 7588129e24
commit 9324227517
4 changed files with 12 additions and 7 deletions

View file

@ -25,7 +25,7 @@ static char sccsid[] = "@(#)cmds.c 5.18 (Berkeley) 4/20/89";
//#include <sys/param.h>
//#include <sys/wait.h>
#include <sys/stat.h>
#if !defined(WIN32)
#ifndef _WIN32
#include <sys/socket.h>
#include <arpa/ftp.h>
#include <netinet/in.h>

View file

@ -25,7 +25,7 @@ static char sccsid[] = "@(#)ftp.c 5.28 (Berkeley) 4/20/89";
#include <sys/stat.h>
#if !defined(WIN32)
#ifndef _WIN32
#include <sys/param.h>
#include <sys/socket.h>
#include <sys/time.h>

View file

@ -28,7 +28,7 @@ static char sccsid[] = "@(#)main.c based on 5.13 (Berkeley) 3/14/89";
/*
* FTP User Program -- Command Interface.
*/
#if !defined(WIN32)
#ifndef _WIN32
#include <netdb.h>
#include <sys/socket.h>
#include <sys/ioctl.h>

View file

@ -236,8 +236,9 @@ INT Release(TCHAR Index)
if (Index == (TCHAR)NULL)
{
PIP_INTERFACE_INFO pInfo;
ULONG ulOutBufLen;
pInfo = (IP_INTERFACE_INFO *) malloc(sizeof(IP_INTERFACE_INFO));
ULONG ulOutBufLen = 0;
ulOutBufLen = 0;
/* Make an initial call to GetInterfaceInfo to get
* the necessary size into the ulOutBufLen variable */
@ -290,8 +291,9 @@ INT Renew(TCHAR Index)
if (Index == (TCHAR)NULL)
{
PIP_INTERFACE_INFO pInfo;
ULONG ulOutBufLen;
pInfo = (IP_INTERFACE_INFO *) malloc(sizeof(IP_INTERFACE_INFO));
ULONG ulOutBufLen = 0;
ulOutBufLen = 0;
/* Make an initial call to GetInterfaceInfo to get
* the necessary size into the ulOutBufLen variable */
@ -335,9 +337,12 @@ VOID Info()
{
// Declare and initialize variables
PIP_INTERFACE_INFO pInfo;
ULONG ulOutBufLen;
DWORD dwRetVal;
pInfo = (IP_INTERFACE_INFO *) malloc( sizeof(IP_INTERFACE_INFO) );
ULONG ulOutBufLen = sizeof(IP_INTERFACE_INFO);
DWORD dwRetVal = 0;
ulOutBufLen = sizeof(IP_INTERFACE_INFO);
dwRetVal = 0;
// Make an initial call to GetInterfaceInfo to get