Change uint64_t to uintmax_t

This commit is contained in:
Aaron Marcher
2018-07-07 10:50:25 +02:00
parent d76b1a21fc
commit 43a12832a3
9 changed files with 45 additions and 45 deletions

View File

@ -9,13 +9,13 @@
const char *
temp(const char *file)
{
uint64_t temp;
uintmax_t temp;
if(pscanf(file, "%" PRIu64, &temp) != 1) {
if(pscanf(file, "%" PRIuMAX, &temp) != 1) {
return NULL;
}
return bprintf("%" PRIu64, temp / 1000);
return bprintf("%" PRIuMAX, temp / 1000);
}
#elif defined(__OpenBSD__)
#include <stdio.h>