From aed415cc475fbe8f5aae400e0fb6b3a028f717d2 Mon Sep 17 00:00:00 2001 From: Yi Kong Date: Fri, 13 Jul 2018 18:15:16 -0700 Subject: [adb] Modernize codebase by replacing NULL with nullptr Fixes -Wzero-as-null-pointer-constant warning. Test: m Bug: 68236239 Change-Id: Ia8c4deacafed2f3b7dbc3d4c3c77c6c632e3de81 --- adb/adb_io.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'adb/adb_io.cpp') 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)"); -- cgit v1.2.3