Skip to content
Snippets Groups Projects
Commit b6d091cc authored by Maciej Żenczykowski's avatar Maciej Żenczykowski
Browse files

change NULL to nullptr


(for consistency with the rest of the file)

Test: TreeHugger
Signed-off-by: default avatarMaciej Żenczykowski <maze@google.com>
Change-Id: I78be4ca1c22e266a658288ee714a6f952b2ad529
parent 60eba16a
No related branches found
No related tags found
No related merge requests found
......@@ -63,7 +63,7 @@ static jobject statsValueToEntry(JNIEnv* env, StatsValue* stats) {
static jobject nativeGetTotalStat(JNIEnv* env, jclass clazz) {
StatsValue stats = {};
if (bpfGetIfaceStats(NULL, &stats) == 0) {
if (bpfGetIfaceStats(nullptr, &stats) == 0) {
return statsValueToEntry(env, &stats);
} else {
return nullptr;
......@@ -72,7 +72,7 @@ static jobject nativeGetTotalStat(JNIEnv* env, jclass clazz) {
static jobject nativeGetIfaceStat(JNIEnv* env, jclass clazz, jstring iface) {
ScopedUtfChars iface8(env, iface);
if (iface8.c_str() == NULL) {
if (iface8.c_str() == nullptr) {
return nullptr;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment