Skip to content

Commit

Permalink
shutdown.cpp: use nullptr instead of NULL
Browse files Browse the repository at this point in the history
  • Loading branch information
bkueng committed Apr 18, 2017
1 parent 0bec3b2 commit a0d23bf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/platforms/common/shutdown.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ void shutdown_worker(void *arg)
}

} else {
work_queue(HPWORK, &shutdown_work, (worker_t)&shutdown_worker, NULL, USEC2TICK(10000));
work_queue(HPWORK, &shutdown_work, (worker_t)&shutdown_worker, nullptr, USEC2TICK(10000));
}
}

Expand Down Expand Up @@ -192,7 +192,7 @@ int px4_shutdown_request(bool reboot, bool to_bootloader)
shutdown_args |= SHUTDOWN_ARG_TO_BOOTLOADER;
}

return work_queue(HPWORK, &shutdown_work, (worker_t)&shutdown_worker, NULL, USEC2TICK(0));
return work_queue(HPWORK, &shutdown_work, (worker_t)&shutdown_worker, nullptr, USEC2TICK(0));
}


Expand Down

0 comments on commit a0d23bf

Please sign in to comment.