Project

General

Profile

Feature #348 ยป 0049-deprecations.c-Replace-NULLs-with-nullptrs.patch

Marko Lindqvist, 03/23/2024 09:38 AM

View differences:

utility/deprecations.c
#include "deprecations.h"
static deprecation_warn_callback depr_cb = NULL;
static deprecation_warn_callback depr_cb = nullptr;
static bool depr_warns_enabled = FALSE;
......
va_start(args, format);
vdo_log(__FILE__, __FUNCTION__, __FC_LINE__, FALSE, LOG_DEPRECATION,
buf, sizeof(buf), format, args);
if (depr_cb != NULL) {
if (depr_cb != nullptr) {
depr_cb(buf);
}
va_end(args);
    (1-1/1)