summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorMark Salyzyn <salyzyn@google.com>2014-04-30 09:21:54 -0700
committerMark Salyzyn <salyzyn@google.com>2014-05-02 14:16:00 -0700
commit3cb54987857690fa5b73f0192cc052eb55b562f7 (patch)
tree0d77dd191763e91219cd48fb92aaf88168c0fa6a /include
parentf1a8dfa0ebfc233e569ffa83e21e37d0a829b94c (diff)
downloadsystem_core-3cb54987857690fa5b73f0192cc052eb55b562f7.zip
system_core-3cb54987857690fa5b73f0192cc052eb55b562f7.tar.gz
system_core-3cb54987857690fa5b73f0192cc052eb55b562f7.tar.bz2
logd: 64-bit compile issue
- ULONG_MAX is used against an uint32 - Add tv_sec_max and tv_nsec_max constants to log_time Change-Id: Ic86cd7b0680868ad0536198b71a34cb19134fc22
Diffstat (limited to 'include')
-rw-r--r--include/log/log_read.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/log/log_read.h b/include/log/log_read.h
index bd9de12..54d71a4 100644
--- a/include/log/log_read.h
+++ b/include/log/log_read.h
@@ -33,6 +33,9 @@ public:
uint32_t tv_sec; // good to Feb 5 2106
uint32_t tv_nsec;
+ static const uint32_t tv_sec_max = 0xFFFFFFFFUL;
+ static const uint32_t tv_nsec_max = 999999999UL;
+
log_time(const timespec &T)
{
tv_sec = T.tv_sec;