COMP: Attempt to remove warnings on borland
This commit is contained in:
parent
a4c8aee1f4
commit
3f75f0ea1e
|
@ -86,7 +86,7 @@ size_t Curl_base64_decode(const char *src, char *dest)
|
||||||
int i;
|
int i;
|
||||||
int numQuantums;
|
int numQuantums;
|
||||||
unsigned char lastQuantum[3];
|
unsigned char lastQuantum[3];
|
||||||
size_t rawlen=0;
|
size_t rawlen;
|
||||||
|
|
||||||
while((src[length] != '=') && src[length])
|
while((src[length] != '=') && src[length])
|
||||||
length++;
|
length++;
|
||||||
|
|
|
@ -405,7 +405,7 @@ static CURLcode bindlocal(struct connectdata *conn,
|
||||||
*/
|
*/
|
||||||
static bool verifyconnect(curl_socket_t sockfd, int *error)
|
static bool verifyconnect(curl_socket_t sockfd, int *error)
|
||||||
{
|
{
|
||||||
bool rc = TRUE;
|
bool rc;
|
||||||
#ifdef SO_ERROR
|
#ifdef SO_ERROR
|
||||||
int err = 0;
|
int err = 0;
|
||||||
#ifdef __hpux
|
#ifdef __hpux
|
||||||
|
|
|
@ -156,7 +156,7 @@ Curl_cookie_add(struct SessionHandle *data,
|
||||||
struct Cookie *co;
|
struct Cookie *co;
|
||||||
struct Cookie *lastc=NULL;
|
struct Cookie *lastc=NULL;
|
||||||
time_t now = time(NULL);
|
time_t now = time(NULL);
|
||||||
bool replace_old = FALSE;
|
bool replace_old;
|
||||||
bool badcookie = FALSE; /* cookies are good by default. mmmmm yummy */
|
bool badcookie = FALSE; /* cookies are good by default. mmmmm yummy */
|
||||||
|
|
||||||
/* First, alloc and init a new struct for it */
|
/* First, alloc and init a new struct for it */
|
||||||
|
|
|
@ -87,7 +87,7 @@ CURLcode Curl_dict(struct connectdata *conn)
|
||||||
char *strategy = NULL;
|
char *strategy = NULL;
|
||||||
char *nthdef = NULL; /* This is not part of the protocol, but required
|
char *nthdef = NULL; /* This is not part of the protocol, but required
|
||||||
by RFC 2229 */
|
by RFC 2229 */
|
||||||
CURLcode result=CURLE_OK;
|
CURLcode result;
|
||||||
struct SessionHandle *data=conn->data;
|
struct SessionHandle *data=conn->data;
|
||||||
curl_socket_t sockfd = conn->sock[FIRSTSOCKET];
|
curl_socket_t sockfd = conn->sock[FIRSTSOCKET];
|
||||||
|
|
||||||
|
|
|
@ -219,7 +219,7 @@ CURLcode curl_global_init_mem(long flags, curl_malloc_callback m,
|
||||||
curl_free_callback f, curl_realloc_callback r,
|
curl_free_callback f, curl_realloc_callback r,
|
||||||
curl_strdup_callback s, curl_calloc_callback c)
|
curl_strdup_callback s, curl_calloc_callback c)
|
||||||
{
|
{
|
||||||
CURLcode code = CURLE_OK;
|
CURLcode code;
|
||||||
|
|
||||||
/* Invalid input, return immediately */
|
/* Invalid input, return immediately */
|
||||||
if (!m || !f || !r || !s || !c)
|
if (!m || !f || !r || !s || !c)
|
||||||
|
@ -300,12 +300,12 @@ typedef int (*func_T)(void);
|
||||||
CURLcode curl_easy_setopt(CURL *curl, CURLoption tag, ...)
|
CURLcode curl_easy_setopt(CURL *curl, CURLoption tag, ...)
|
||||||
{
|
{
|
||||||
va_list arg;
|
va_list arg;
|
||||||
func_T param_func = (func_T)0;
|
func_T param_func;
|
||||||
long param_long = 0;
|
long param_long;
|
||||||
void *param_obj = NULL;
|
void *param_obj;
|
||||||
curl_off_t param_offset = 0;
|
curl_off_t param_offset;
|
||||||
struct SessionHandle *data = curl;
|
struct SessionHandle *data = curl;
|
||||||
CURLcode ret=CURLE_FAILED_INIT;
|
CURLcode ret;
|
||||||
|
|
||||||
if(!curl)
|
if(!curl)
|
||||||
return CURLE_BAD_FUNCTION_ARGUMENT;
|
return CURLE_BAD_FUNCTION_ARGUMENT;
|
||||||
|
|
|
@ -43,7 +43,7 @@ char *curl_escape(const char *string, int inlength)
|
||||||
{
|
{
|
||||||
size_t alloc = (inlength?(size_t)inlength:strlen(string))+1;
|
size_t alloc = (inlength?(size_t)inlength:strlen(string))+1;
|
||||||
char *ns;
|
char *ns;
|
||||||
char *testing_ptr = NULL;
|
char *testing_ptr;
|
||||||
unsigned char in;
|
unsigned char in;
|
||||||
size_t newlen = alloc;
|
size_t newlen = alloc;
|
||||||
int strindex=0;
|
int strindex=0;
|
||||||
|
|
|
@ -241,7 +241,7 @@ static FormInfo * AddFormInfo(char *value,
|
||||||
static const char * ContentTypeForFilename (const char *filename,
|
static const char * ContentTypeForFilename (const char *filename,
|
||||||
const char *prevtype)
|
const char *prevtype)
|
||||||
{
|
{
|
||||||
const char *contenttype = NULL;
|
const char *contenttype;
|
||||||
unsigned int i;
|
unsigned int i;
|
||||||
/*
|
/*
|
||||||
* No type was specified, we scan through a few well-known
|
* No type was specified, we scan through a few well-known
|
||||||
|
|
Loading…
Reference in New Issue