Tweaks to eliminate warnings on win32 build of libfko and client.

git-svn-id: file:///home/mbr/svn/fwknop/trunk@207 510a4753-2344-4c79-9c09-4d669213fbeb
This commit is contained in:
Damien Stuart 2010-02-06 19:27:54 +00:00
parent 7ba6482afb
commit 4373172289
3 changed files with 4 additions and 3 deletions

View File

@ -582,7 +582,7 @@ run_last_args(fko_cli_options_t *options)
args_str[MAX_LINE_LEN-1] = '\0'; args_str[MAX_LINE_LEN-1] = '\0';
if (options->verbose) if (options->verbose)
printf("[+] Executing: %s\n", args_str); printf("[+] Executing: %s\n", args_str);
for (i=0; i < strlen(args_str); i++) for (i=0; i < (int)strlen(args_str); i++)
{ {
if (!isspace(args_str[i])) if (!isspace(args_str[i]))
{ {

View File

@ -24,6 +24,7 @@
* *
***************************************************************************** *****************************************************************************
*/ */
#include "fko_common.h"
#include "spa_comm.h" #include "spa_comm.h"
/* Function to generate a header checksum. /* Function to generate a header checksum.
@ -425,7 +426,7 @@ send_spa_packet_http(char *spa_data, int sd_len, fko_cli_options_t *options)
} }
for (i=http_proxy_start, j=0; for (i=http_proxy_start, j=0;
i < strlen(options->http_proxy) && options->http_proxy[i] != ':'; i++, j++) i < (int)strlen(options->http_proxy) && options->http_proxy[i] != ':'; i++, j++)
{ {
http_proxy_host[j] = options->http_proxy[i]; http_proxy_host[j] = options->http_proxy[i];
} }

View File

@ -50,10 +50,10 @@ fko_set_rand_value(fko_ctx_t ctx, const char *new_val)
#else #else
FILE *rfd; FILE *rfd;
struct timeval tv; struct timeval tv;
size_t amt_read;
#endif #endif
unsigned long seed; unsigned long seed;
char *tmp_buf; char *tmp_buf;
size_t amt_read;
/* Context must be initialized. /* Context must be initialized.
*/ */