git://scm.lunaixsky.com
/
lunaix-os.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
chore: fix almost *ALL* warnings.
[lunaix-os.git]
/
lunaix-os
/
includes
/
lunaix
/
clock.h
diff --git
a/lunaix-os/includes/lunaix/clock.h
b/lunaix-os/includes/lunaix/clock.h
index 8c9ab15a5eecdcbd28fd01ce3ed2c6428fb8dae5..f3c67d978470b43bb105c3910a3947c7577b4347 100644
(file)
--- a/
lunaix-os/includes/lunaix/clock.h
+++ b/
lunaix-os/includes/lunaix/clock.h
@@
-3,17
+3,17
@@
#include <lunaix/types.h>
#include <lunaix/types.h>
-typedef u
int
32_t time_t;
+typedef u32_t time_t;
typedef struct
{
typedef struct
{
- u
int
32_t year; // use int32 as we need to store the 4-digit year
- u
int
8_t month;
- u
int
8_t day;
- u
int
8_t weekday;
- u
int
8_t hour;
- u
int
8_t minute;
- u
int
8_t second;
+ u32_t year; // use int32 as we need to store the 4-digit year
+ u8_t month;
+ u8_t day;
+ u8_t weekday;
+ u8_t hour;
+ u8_t minute;
+ u8_t second;
} datetime_t;
void
} datetime_t;
void