Feature #2125 ยป 0047-setcompat.c-Replace-NULL-with-nullptr.patch
| 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;
|
||
|
}
|
||