From c4182e08ab83a330f20f280960bd7b0586633714 Mon Sep 17 00:00:00 2001 From: Erik van der Kouwe Date: Wed, 8 Jul 2015 09:27:30 +0200 Subject: [PATCH] tests: change u32_t to uint32_t for portability Change-Id: I8ea57fff72c3b3ed02cc9d82ee295069ca299ed9 --- minix/tests/common.c | 4 ++-- minix/tests/common.h | 3 ++- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/minix/tests/common.c b/minix/tests/common.c index a4e1fa032..986858f22 100644 --- a/minix/tests/common.c +++ b/minix/tests/common.c @@ -170,9 +170,9 @@ printprogress(char *msg, int i, int max) prev_time = now; } -void getmem(u32_t *total, u32_t *free, u32_t *cached) +void getmem(uint32_t *total, uint32_t *free, uint32_t *cached) { - u32_t pagesize, largest; + uint32_t pagesize, largest; FILE *f = fopen("/proc/meminfo", "r"); if(!f) return; if(fscanf(f, "%u %u %u %u %u", &pagesize, total, free, diff --git a/minix/tests/common.h b/minix/tests/common.h index 69e3237f5..1290883d2 100644 --- a/minix/tests/common.h +++ b/minix/tests/common.h @@ -3,6 +3,7 @@ #include #include #include +#include #include #include #include @@ -21,6 +22,6 @@ void quit(void); void rm_rf_dir(int test_nr); void rm_rf_ppdir(int test_nr); void start(int test_nr); -void getmem(u32_t *total, u32_t *free, u32_t *cached); +void getmem(uint32_t *total, uint32_t *free, uint32_t *cached); extern int common_test_nr, errct, subtest;