Fix C99 warnings. Remove static on settings_lookup_offset