COMP: Attempt to remove warnings on borland

This commit is contained in:
Andy Cedilnik 2004-10-13 10:01:04 -04:00
parent a4c8aee1f4
commit 3f75f0ea1e
7 changed files with 12 additions and 12 deletions

View File

@ -86,7 +86,7 @@ size_t Curl_base64_decode(const char *src, char *dest)
int i;
int numQuantums;
unsigned char lastQuantum[3];
size_t rawlen=0;
size_t rawlen;
while((src[length] != '=') && src[length])
length++;

View File

@ -405,7 +405,7 @@ static CURLcode bindlocal(struct connectdata *conn,
*/
static bool verifyconnect(curl_socket_t sockfd, int *error)
{
bool rc = TRUE;
bool rc;
#ifdef SO_ERROR
int err = 0;
#ifdef __hpux

View File

@ -156,7 +156,7 @@ Curl_cookie_add(struct SessionHandle *data,
struct Cookie *co;
struct Cookie *lastc=NULL;
time_t now = time(NULL);
bool replace_old = FALSE;
bool replace_old;
bool badcookie = FALSE; /* cookies are good by default. mmmmm yummy */
/* First, alloc and init a new struct for it */

View File

@ -87,7 +87,7 @@ CURLcode Curl_dict(struct connectdata *conn)
char *strategy = NULL;
char *nthdef = NULL; /* This is not part of the protocol, but required
by RFC 2229 */
CURLcode result=CURLE_OK;
CURLcode result;
struct SessionHandle *data=conn->data;
curl_socket_t sockfd = conn->sock[FIRSTSOCKET];

View File

@ -219,7 +219,7 @@ CURLcode curl_global_init_mem(long flags, curl_malloc_callback m,
curl_free_callback f, curl_realloc_callback r,
curl_strdup_callback s, curl_calloc_callback c)
{
CURLcode code = CURLE_OK;
CURLcode code;
/* Invalid input, return immediately */
if (!m || !f || !r || !s || !c)
@ -300,12 +300,12 @@ typedef int (*func_T)(void);
CURLcode curl_easy_setopt(CURL *curl, CURLoption tag, ...)
{
va_list arg;
func_T param_func = (func_T)0;
long param_long = 0;
void *param_obj = NULL;
curl_off_t param_offset = 0;
func_T param_func;
long param_long;
void *param_obj;
curl_off_t param_offset;
struct SessionHandle *data = curl;
CURLcode ret=CURLE_FAILED_INIT;
CURLcode ret;
if(!curl)
return CURLE_BAD_FUNCTION_ARGUMENT;

View File

@ -43,7 +43,7 @@ char *curl_escape(const char *string, int inlength)
{
size_t alloc = (inlength?(size_t)inlength:strlen(string))+1;
char *ns;
char *testing_ptr = NULL;
char *testing_ptr;
unsigned char in;
size_t newlen = alloc;
int strindex=0;

View File

@ -241,7 +241,7 @@ static FormInfo * AddFormInfo(char *value,
static const char * ContentTypeForFilename (const char *filename,
const char *prevtype)
{
const char *contenttype = NULL;
const char *contenttype;
unsigned int i;
/*
* No type was specified, we scan through a few well-known