diff --git a/tests/test_fscanf_s.c b/tests/test_fscanf_s.c index 64fee22f..69b1a188 100644 --- a/tests/test_fscanf_s.c +++ b/tests/test_fscanf_s.c @@ -40,6 +40,7 @@ void stuff_stream(const char *dest) { int test_fscanf_s(void) { errno_t rc; int32_t ind; + int i1; size_t len1; size_t len2; size_t len3; @@ -90,12 +91,12 @@ int test_fscanf_s(void) { #endif stuff_stream(" 24"); - rc = fscanf_s(stream, " %d", &len1); + rc = fscanf_s(stream, " %d", &i1); ERR(1); ERRNO(0); - if ((int)len1 != 24) { + if (i1 != 24) { debug_printf("%s %u wrong arg: %d\n", __FUNCTION__, __LINE__, - (int)len1); + i1); errs++; } diff --git a/tests/test_scanf_s.c b/tests/test_scanf_s.c index a99a8b41..d206e931 100644 --- a/tests/test_scanf_s.c +++ b/tests/test_scanf_s.c @@ -38,6 +38,7 @@ void stuff_stdin(const char *dest) { int test_scanf_s(void) { errno_t rc; int32_t ind; + int i1; size_t len1; size_t len2; size_t len3; @@ -99,16 +100,16 @@ int test_scanf_s(void) { EXPSTR(str3, "24");*/ stuff_stdin(" 24"); - rc = scanf_s(" %d", &len1); + rc = scanf_s(" %d", &i1); if (rc != 1) { printf("flapping tests - abort\n"); return errs; } ERR(1); ERRNO(0); - if ((int)len1 != 24) { + if (i1 != 24) { debug_printf("%s %u wrong arg: %d\n", __FUNCTION__, __LINE__, - (int)len1); + i1); errs++; }