diff options
author | Alex Vakulenko <avakulenko@google.com> | 2016-04-01 10:33:17 -0700 |
---|---|---|
committer | Alex Vakulenko <avakulenko@google.com> | 2016-04-01 17:34:43 +0000 |
commit | 2fd3e553fbbb93eefb4d09e5f516d5931bb47802 (patch) | |
tree | 162144836459a3b046228f30b39da97f435f55e7 | |
parent | dcc0dca657396fdc57a1f4d7ee1fca66f059cb1e (diff) | |
download | libweave-2fd3e553fbbb93eefb4d09e5f516d5931bb47802.tar.gz |
libuweave: Fix break on Android toolchain
Android toolchain defines "unix" to be 1 which breaks one function
prototype in libuweave code. Changed the param name from "unix" to
"unix_timestamp".
Change-Id: Ic484d74aa3af1459af7cf6d15da4bc5b20226cf8
Reviewed-on: https://weave-review.googlesource.com/3120
Reviewed-by: Alex Vakulenko <avakulenko@google.com>
-rw-r--r-- | third_party/libuweave/src/macaroon.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/third_party/libuweave/src/macaroon.h b/third_party/libuweave/src/macaroon.h index 310f988..09c0459 100644 --- a/third_party/libuweave/src/macaroon.h +++ b/third_party/libuweave/src/macaroon.h @@ -110,8 +110,8 @@ static inline time_t uw_macaroon_j2000_to_unix_epoch(time_t j2000) { } /** Converts a unix timestamp to a j2000 timestamp. */ -static inline time_t uw_macaroon_unix_epoch_to_j2000(time_t unix) { - return unix - J2000_EPOCH_OFFSET; +static inline time_t uw_macaroon_unix_epoch_to_j2000(time_t unix_timestamp) { + return unix_timestamp - J2000_EPOCH_OFFSET; } /** |