Fix cert-dcl16-c warnings

Bug: 120614316
Test: make tidy-frameworks-base_subset
Change-Id: Ie71c06e02fcb9a2f90508c37d926a79e0b591c5a
This commit is contained in:
Chih-Hung Hsieh 2022-02-09 15:29:32 -08:00
parent a31dc6da2a
commit 623cf543a8
2 changed files with 7 additions and 7 deletions

View File

@ -50,7 +50,7 @@ TEST_F(BackupHelpersTest, WriteTarFileWithSizeLessThan2GB) {
TEST_F(BackupHelpersTest, WriteTarFileWithSizeGreaterThan2GB) {
TemporaryFile tf;
// Allocate a 2 GB file.
off64_t fileSize = 2ll * 1024ll * 1024ll * 1024ll + 512ll;
off64_t fileSize = 2LL * 1024LL * 1024LL * 1024LL + 512LL;
ASSERT_EQ(0, posix_fallocate64(tf.fd, 0, fileSize));
off64_t tarSize = 0;
int err = write_tarfile(/* packageName */ String8("test-pkg"), /* domain */ String8(""), /* rootpath */ String8(""), /* filePath */ String8(tf.path), /* outSize */ &tarSize, /* writer */ NULL);

View File

@ -30,7 +30,7 @@ namespace BroadcastRadio {
// Keep in sync with STATUS_* constants from RadioManager.java.
enum class Status : jint {
OK = 0,
ERROR = -0x80000000ll, // Integer.MIN_VALUE
ERROR = -0x80000000LL, // Integer.MIN_VALUE
PERMISSION_DENIED = -1, // -EPERM
NO_INIT = -19, // -ENODEV
BAD_VALUE = -22, // -EINVAL