Project

General

Profile

Feature #2125 ยป 0047-setcompat.c-Replace-NULL-with-nullptr.patch

Marko Lindqvist, 08/08/2026 04:08 PM

View differences:

server/setcompat.c
static struct set_name_compat set_name_compat_S3_1_to_S3_2[] =
{
{ "spaceship_travel_time", "spaceship_travel_pct" },
{ NULL, NULL }
{ nullptr, nullptr }
};
......
{
int i;
for (i = 0; compats[i].old_name != NULL; i++) {
for (i = 0; compats[i].old_name != nullptr; i++) {
if (!fc_strcasecmp(old_name, compats[i].old_name)) {
return compats[i].new_name;
}
......
#endif
}
return NULL;
return nullptr;
}
    (1-1/1)