mirror of
https://github.com/lwip-tcpip/lwip.git
synced 2024-12-26 03:16:18 +00:00
makefsdata: fix hiding local variable 'i'
This commit is contained in:
parent
059bc952f6
commit
a445172661
@ -455,9 +455,9 @@ int process_sub(FILE *data_file, FILE *struct_file)
|
|||||||
|
|
||||||
if (ret == 0) {
|
if (ret == 0) {
|
||||||
#if (defined _MSC_VER || defined __MINGW32__) && (defined _UNICODE)
|
#if (defined _MSC_VER || defined __MINGW32__) && (defined _UNICODE)
|
||||||
size_t i;
|
size_t num_char_converted;
|
||||||
char currName[256];
|
char currName[256];
|
||||||
wcstombs_s(&i, currName, sizeof(currName), file.name, sizeof(currName));
|
wcstombs_s(&num_char_converted, currName, sizeof(currName), file.name, sizeof(currName));
|
||||||
#else
|
#else
|
||||||
const char *currName = file.name;
|
const char *currName = file.name;
|
||||||
#endif
|
#endif
|
||||||
@ -495,9 +495,9 @@ int process_sub(FILE *data_file, FILE *struct_file)
|
|||||||
if (ret == 0) {
|
if (ret == 0) {
|
||||||
if (!file.is_dir) {
|
if (!file.is_dir) {
|
||||||
#if (defined _MSC_VER || defined __MINGW32__) && (defined _UNICODE)
|
#if (defined _MSC_VER || defined __MINGW32__) && (defined _UNICODE)
|
||||||
size_t i;
|
size_t num_char_converted;
|
||||||
char curName[256];
|
char curName[256];
|
||||||
wcstombs_s(&i, curName, sizeof(curName), file.name, sizeof(curName));
|
wcstombs_s(&num_char_converted, curName, sizeof(curName), file.name, sizeof(curName));
|
||||||
#else
|
#else
|
||||||
const char *curName = file.name;
|
const char *curName = file.name;
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
Reference in New Issue
Block a user