int quirk_reopen (it was bool);

to avoid:
driver-icarus.c:1057:41: warning: comparison of constant 2 with expression of type 'bool' is always true [-Wtautological-constant-out-of-range-compare]
        if (was_hw_error && info->quirk_reopen != 2) {
                            ~~~~~~~~~~~~~~~~~~ ^  ~
driver-icarus.c:1070:25: warning: comparison of constant 2 with expression of type 'bool' is always false [-Wtautological-constant-out-of-range-compare]
        if (info->quirk_reopen == 2 && !icarus_reopen(icarus, state, &fd))