diff options
author | Yi Kong <yikong@google.com> | 2018-07-13 18:15:16 -0700 |
---|---|---|
committer | Yi Kong <yikong@google.com> | 2018-07-13 18:21:00 -0700 |
commit | aed415cc475fbe8f5aae400e0fb6b3a028f717d2 (patch) | |
tree | 10e7f3a725e4c458cd26ad1a38f7f7997df4dff4 /adb/adb_io.cpp | |
parent | dc8483cc04ea9d2a716a4ba0916eb3941b54156c (diff) | |
download | system_core-aed415cc475fbe8f5aae400e0fb6b3a028f717d2.tar.gz system_core-aed415cc475fbe8f5aae400e0fb6b3a028f717d2.tar.bz2 system_core-aed415cc475fbe8f5aae400e0fb6b3a028f717d2.zip |
[adb] Modernize codebase by replacing NULL with nullptr
Fixes -Wzero-as-null-pointer-constant warning.
Test: m
Bug: 68236239
Change-Id: Ia8c4deacafed2f3b7dbc3d4c3c77c6c632e3de81
Diffstat (limited to 'adb/adb_io.cpp')
-rw-r--r-- | adb/adb_io.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/adb/adb_io.cpp b/adb/adb_io.cpp index 38e31167e..6cc274bbe 100644 --- a/adb/adb_io.cpp +++ b/adb/adb_io.cpp @@ -49,7 +49,7 @@ bool ReadProtocolString(int fd, std::string* s, std::string* error) { } buf[4] = 0; - unsigned long len = strtoul(buf, 0, 16); + unsigned long len = strtoul(buf, nullptr, 16); s->resize(len, '\0'); if (!ReadFdExactly(fd, &(*s)[0], len)) { *error = perror_str("protocol fault (couldn't read status message)"); |