mirror of
git://git.openembedded.org/meta-openembedded
synced 2026-01-01 13:58:06 +00:00
libnwck/libnwck3: use time_t to avoid build failure
The time_t type varies for 64bit and 32bit. So instead of using long long, we should just use time_t. In this way, things build for both 64bit and 32bit targets. Signed-off-by: Chen Qi <Qi.Chen@windriver.com> Signed-off-by: Khem Raj <raj.khem@gmail.com>
This commit is contained in:
parent
bad66d976e
commit
15a204024d
|
|
@ -23,7 +23,7 @@ Upstream-Status: Inappropriate [oe-specific]
|
||||||
Signed-off-by: Koen Kooi <koen@dominion.thruhere.net>
|
Signed-off-by: Koen Kooi <koen@dominion.thruhere.net>
|
||||||
|
|
||||||
Refresh the patch
|
Refresh the patch
|
||||||
Don't use explicit type cast to avoid truncation, use long long for tv_sec.
|
Don't use explicit type cast to avoid truncation, use time_t for tv_sec.
|
||||||
|
|
||||||
Signed-off-by: Changqing Li <changqing.li@windriver.com>
|
Signed-off-by: Changqing Li <changqing.li@windriver.com>
|
||||||
|
|
||||||
|
|
@ -40,7 +40,7 @@ index 7418f89..f0f30b2 100644
|
||||||
GList *tmp;
|
GList *tmp;
|
||||||
gint64 now;
|
gint64 now;
|
||||||
- long tv_sec, tv_usec;
|
- long tv_sec, tv_usec;
|
||||||
+ long long tv_sec;
|
+ time_t tv_sec;
|
||||||
+ long tv_usec;
|
+ long tv_usec;
|
||||||
double elapsed;
|
double elapsed;
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -32,7 +32,7 @@ index 4f0c6c4..758fc5f 100644
|
||||||
GList *tmp;
|
GList *tmp;
|
||||||
GTimeVal now;
|
GTimeVal now;
|
||||||
- long tv_sec, tv_usec;
|
- long tv_sec, tv_usec;
|
||||||
+ long long tv_sec;
|
+ time_t tv_sec;
|
||||||
+ long tv_usec;
|
+ long tv_usec;
|
||||||
double elapsed;
|
double elapsed;
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user