- since "bx_options.cdromd.Oinserted" changed from bool to enum, I had
to change the parsing code to set BX_INSERTED and BX_EJECTED instead of 0,1.
This commit is contained in:
parent
a6d74fd4b0
commit
7916a2e1f5
@ -986,9 +986,9 @@ parse_line_formatted(char *context, int num_params, char *params[])
|
||||
}
|
||||
bx_options.cdromd.Opath->set (¶ms[1][4]);
|
||||
if (!strcmp(params[2], "status=inserted"))
|
||||
bx_options.cdromd.Oinserted->set (1);
|
||||
bx_options.cdromd.Oinserted->set (BX_INSERTED);
|
||||
else if (!strcmp(params[2], "status=ejected"))
|
||||
bx_options.cdromd.Oinserted->set (0);
|
||||
bx_options.cdromd.Oinserted->set (BX_EJECTED);
|
||||
else {
|
||||
BX_PANIC(("%s: cdromd directive malformed.", context));
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user