From b61e5ae176019ed6e8c5381a91f1edf03c410079 Mon Sep 17 00:00:00 2001 From: Mark Pizzolato Date: Wed, 8 Jan 2014 13:06:42 -0800 Subject: [PATCH] Compiler indicated cleanups --- sim_console.c | 2 +- sim_ether.h | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/sim_console.c b/sim_console.c index deff8c36..0e588a5f 100644 --- a/sim_console.c +++ b/sim_console.c @@ -1623,7 +1623,7 @@ for (i = 0; i < val; i++) temptabs[i] = 0; do { cptr = get_glyph (cptr, gbuf, ';'); - d = get_uint (gbuf, 10, val, &r); + d = (int32)get_uint (gbuf, 10, val, &r); if ((r != SCPE_OK) || (d == 0)) { free (temptabs); return SCPE_ARG; diff --git a/sim_ether.h b/sim_ether.h index 309b9cb9..fc14c0fb 100644 --- a/sim_ether.h +++ b/sim_ether.h @@ -132,6 +132,9 @@ */ #if defined(HAVE_PCAP_NETWORK) #define USE_BPF 1 +#if defined (_WIN32) && !defined (BPF_CONST_STRING) +#define BPF_CONST_STRING 1 +#endif #else #define DONT_USE_PCAP_FINDALLDEVS 1 #endif