ini: Fix some warnings and check status