tests: change u32_t to uint32_t for portability
Change-Id: I8ea57fff72c3b3ed02cc9d82ee295069ca299ed9
This commit is contained in:
parent
95b9ecf995
commit
c4182e08ab
|
@ -170,9 +170,9 @@ printprogress(char *msg, int i, int max)
|
||||||
prev_time = now;
|
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");
|
FILE *f = fopen("/proc/meminfo", "r");
|
||||||
if(!f) return;
|
if(!f) return;
|
||||||
if(fscanf(f, "%u %u %u %u %u", &pagesize, total, free,
|
if(fscanf(f, "%u %u %u %u %u", &pagesize, total, free,
|
||||||
|
|
|
@ -3,6 +3,7 @@
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
|
#include <stdint.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <time.h>
|
#include <time.h>
|
||||||
#include <sys/statvfs.h>
|
#include <sys/statvfs.h>
|
||||||
|
@ -21,6 +22,6 @@ void quit(void);
|
||||||
void rm_rf_dir(int test_nr);
|
void rm_rf_dir(int test_nr);
|
||||||
void rm_rf_ppdir(int test_nr);
|
void rm_rf_ppdir(int test_nr);
|
||||||
void start(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;
|
extern int common_test_nr, errct, subtest;
|
||||||
|
|
Loading…
Reference in a new issue