summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChih-Hung Hsieh <chh@google.com>2018-12-12 14:57:51 -0800
committerChih-hung Hsieh <chh@google.com>2018-12-13 00:11:23 +0000
commitb3aff2cd754b03ce424055b2c3e51904e28e71bc (patch)
tree39605e2dd4c4829db19b2b4436c118d5be27058c
parent005a39a2ac033218d8a9b88e87cde6150652dd31 (diff)
downloadkernel-android-o-mr1-iot-release-1.0.7.tar.gz
Fix cert-dcl16-c clang-tidy warningsandroid-o-mr1-iot-release-1.0.7
Bug: 120614316 Test: make with WITH_TIDY=1 DEFAULT_GLOBAL_TIDY_CHECKS=-*,cert-dcl16-c Change-Id: I74f2a3866d360c877fee5d40ffed618645f3d563
-rw-r--r--api/qtaguid/SocketTagUserSpace.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/api/qtaguid/SocketTagUserSpace.cpp b/api/qtaguid/SocketTagUserSpace.cpp
index 2dd634d2..8f8695f8 100644
--- a/api/qtaguid/SocketTagUserSpace.cpp
+++ b/api/qtaguid/SocketTagUserSpace.cpp
@@ -225,8 +225,8 @@ class SocketTagUsrSpaceTest : public ::testing::Test {
inet_uid = 1024;
valid_tag1 = (my_pid << 12) | (rand());
valid_tag2 = (my_pid << 12) | (rand());
- max_uint_tag = 0xffffffff00000000llu;
- max_uint_tag = 1llu << 63 | (((uint64_t)my_pid << 48) ^ max_uint_tag);
+ max_uint_tag = 0xffffffff00000000LLU;
+ max_uint_tag = 1LLU << 63 | (((uint64_t)my_pid << 48) ^ max_uint_tag);
// Check the node /dev/xt_qtaguid exist before start.
struct stat nodeStat;
EXPECT_GE(stat("/dev/xt_qtaguid", &nodeStat), 0)