Commit 711f91fd authored by Thomas Weißschuh's avatar Thomas Weißschuh Committed by Willy Tarreau

selftests/nolibc: avoid sign-compare warnings

These warnings will be enabled later so avoid triggering them.
Signed-off-by: default avatarThomas Weißschuh <linux@weissschuh.net>
Signed-off-by: default avatarWilly Tarreau <w@1wt.eu>
parent c8d07815
...@@ -737,9 +737,9 @@ int test_stat_timestamps(void) ...@@ -737,9 +737,9 @@ int test_stat_timestamps(void)
int test_mmap_munmap(void) int test_mmap_munmap(void)
{ {
int ret, fd, i; int ret, fd, i, page_size;
void *mem; void *mem;
size_t page_size, file_size, length; size_t file_size, length;
off_t offset, pa_offset; off_t offset, pa_offset;
struct stat stat_buf; struct stat stat_buf;
const char * const files[] = { const char * const files[] = {
...@@ -1017,7 +1017,7 @@ int run_stdlib(int min, int max) ...@@ -1017,7 +1017,7 @@ int run_stdlib(int min, int max)
#define EXPECT_VFPRINTF(c, expected, fmt, ...) \ #define EXPECT_VFPRINTF(c, expected, fmt, ...) \
ret += expect_vfprintf(llen, c, expected, fmt, ##__VA_ARGS__) ret += expect_vfprintf(llen, c, expected, fmt, ##__VA_ARGS__)
static int expect_vfprintf(int llen, size_t c, const char *expected, const char *fmt, ...) static int expect_vfprintf(int llen, int c, const char *expected, const char *fmt, ...)
{ {
int ret, fd, w, r; int ret, fd, w, r;
char buf[100]; char buf[100];
...@@ -1041,7 +1041,7 @@ static int expect_vfprintf(int llen, size_t c, const char *expected, const char ...@@ -1041,7 +1041,7 @@ static int expect_vfprintf(int llen, size_t c, const char *expected, const char
va_end(args); va_end(args);
if (w != c) { if (w != c) {
llen += printf(" written(%d) != %d", w, (int) c); llen += printf(" written(%d) != %d", w, c);
result(llen, FAIL); result(llen, FAIL);
return 1; return 1;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment