mirror of
https://github.com/reactos/reactos.git
synced 2024-10-01 23:14:53 +00:00
porting fixes
svn path=/trunk/; revision=19481
This commit is contained in:
parent
7588129e24
commit
9324227517
|
@ -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>
|
||||
|
|
|
@ -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>
|
||||
|
|
|
@ -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>
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue