Xinqi Bao's Git
projects
/
slstatus.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
raw
|
inline
| side by side
Change uint64_t to uintmax_t
[slstatus.git]
/
components
/
temperature.c
diff --git
a/components/temperature.c
b/components/temperature.c
index
2c57853
..
71e1378
100644
(file)
--- a/
components/temperature.c
+++ b/
components/temperature.c
@@
-9,13
+9,13
@@
const char *
temp(const char *file)
{
const char *
temp(const char *file)
{
- uint
64
_t temp;
+ uint
max
_t temp;
- if(pscanf(file, "%" PRIu
64
, &temp) != 1) {
+ if(pscanf(file, "%" PRIu
MAX
, &temp) != 1) {
return NULL;
}
return NULL;
}
- return bprintf("%" PRIu
64
, temp / 1000);
+ return bprintf("%" PRIu
MAX
, temp / 1000);
}
#elif defined(__OpenBSD__)
#include <stdio.h>
}
#elif defined(__OpenBSD__)
#include <stdio.h>