mirror of
https://github.com/lwip-tcpip/lwip.git
synced 2024-11-16 14:11:02 +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 (defined _MSC_VER || defined __MINGW32__) && (defined _UNICODE)
|
||||
size_t i;
|
||||
size_t num_char_converted;
|
||||
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
|
||||
const char *currName = file.name;
|
||||
#endif
|
||||
@ -495,9 +495,9 @@ int process_sub(FILE *data_file, FILE *struct_file)
|
||||
if (ret == 0) {
|
||||
if (!file.is_dir) {
|
||||
#if (defined _MSC_VER || defined __MINGW32__) && (defined _UNICODE)
|
||||
size_t i;
|
||||
size_t num_char_converted;
|
||||
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
|
||||
const char *curName = file.name;
|
||||
#endif
|
||||
|
Loading…
Reference in New Issue
Block a user