mirror of
https://github.com/akuker/RASCSI.git
synced 2024-12-23 21:29:30 +00:00
Evaluate status
This commit is contained in:
parent
6dfdb1f077
commit
3d8f2c3252
@ -207,8 +207,8 @@ int main(int argc, char* argv[])
|
||||
// List display only
|
||||
if (id < 0 && cmd < 0 && type < 0 && file == NULL && list) {
|
||||
sprintf(buf, "list\n");
|
||||
SendCommand(buf);
|
||||
exit(0);
|
||||
bool status = SendCommand(buf);
|
||||
exit(status ? 0 : -1);
|
||||
}
|
||||
|
||||
// Check the ID number
|
||||
|
Loading…
Reference in New Issue
Block a user