tests: change u32_t to uint32_t for portability

Change-Id: I8ea57fff72c3b3ed02cc9d82ee295069ca299ed9
This commit is contained in:
Erik van der Kouwe 2015-07-08 09:27:30 +02:00
parent 95b9ecf995
commit c4182e08ab
2 changed files with 4 additions and 3 deletions

View file

@ -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,

View file

@ -3,6 +3,7 @@
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include <stdint.h>
#include <stdio.h>
#include <time.h>
#include <sys/statvfs.h>
@ -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;