Project

General

Profile

Feature #2045 ยป 0035-workertask.c-Replace-NULL-with-nullptr.patch

Marko Lindqvist, 06/06/2026 01:53 AM

View differences:

common/workertask.c
****************************************************************************/
void worker_task_init(struct worker_task *ptask)
{
ptask->ptile = NULL;
ptask->ptile = nullptr;
ptask->want = 0;
}
......
****************************************************************************/
bool worker_task_is_sane(struct worker_task *ptask)
{
if (ptask == NULL) {
if (ptask == nullptr) {
return FALSE;
}
if (ptask->ptile == NULL) {
if (ptask->ptile == nullptr) {
return FALSE;
}
......
}
if (activity_requires_target(ptask->act)) {
if (ptask->tgt == NULL) {
if (ptask->tgt == nullptr) {
return FALSE;
}
if (!is_extra_caused_by(ptask->tgt,
    (1-1/1)