summaryrefslogtreecommitdiffstats
path: root/liblog
diff options
context:
space:
mode:
authorYi Kong2018-07-11 19:37:34 -0500
committerYi Kong2018-07-13 17:28:59 -0500
commitc1a156254864f39cdefffaac34dd39dbe2853129 (patch)
tree5d71b353e76f8487e0f69eab1fdb892f62d4dda2 /liblog
parentd73414c5e819ef7a921ac92f1f5c7545d4f87ef1 (diff)
downloadplatform-system-core-c1a156254864f39cdefffaac34dd39dbe2853129.tar.gz
platform-system-core-c1a156254864f39cdefffaac34dd39dbe2853129.tar.xz
platform-system-core-c1a156254864f39cdefffaac34dd39dbe2853129.zip
Modernize codebase by replacing NULL with nullptr
Fixes -Wzero-as-null-pointer-constant warning for binder. Test: m Bug: 68236239 Change-Id: I8184bd6aa4ebff1bd8c88dad16886e98df853b03
Diffstat (limited to 'liblog')
-rw-r--r--liblog/include/log/log_read.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/liblog/include/log/log_read.h b/liblog/include/log/log_read.h
index d118563be..93b9d4e93 100644
--- a/liblog/include/log/log_read.h
+++ b/liblog/include/log/log_read.h
@@ -184,7 +184,7 @@ struct log_msg {
184 hdr_size = sizeof(entry_v1); 184 hdr_size = sizeof(entry_v1);
185 } 185 }
186 if ((hdr_size < sizeof(entry_v1)) || (hdr_size > sizeof(entry))) { 186 if ((hdr_size < sizeof(entry_v1)) || (hdr_size > sizeof(entry))) {
187 return NULL; 187 return nullptr;
188 } 188 }
189 return reinterpret_cast<char*>(buf) + hdr_size; 189 return reinterpret_cast<char*>(buf) + hdr_size;
190 } 190 }