mirror of
https://github.com/gnif/LookingGlass.git
synced 2024-11-22 05:27:20 +00:00
[client] cosmetics
This commit is contained in:
parent
d60f9988c9
commit
2dfd1c7b52
@ -46,7 +46,7 @@ struct IVSHMEM
|
|||||||
struct IVSHMEMClient * clients;
|
struct IVSHMEMClient * clients;
|
||||||
|
|
||||||
off_t mapSize;
|
off_t mapSize;
|
||||||
void * map;
|
void * map;
|
||||||
};
|
};
|
||||||
|
|
||||||
struct IVSHMEM ivshmem =
|
struct IVSHMEM ivshmem =
|
||||||
@ -383,7 +383,7 @@ void ivshmem_remove_client(struct IVSHMEMClient * client)
|
|||||||
client->next->last = client->last;
|
client->next->last = client->last;
|
||||||
|
|
||||||
if (ivshmem.clients == client)
|
if (ivshmem.clients == client)
|
||||||
ivshmem.clients = client->next;
|
ivshmem.clients = client->next;
|
||||||
|
|
||||||
free(client);
|
free(client);
|
||||||
}
|
}
|
||||||
@ -411,7 +411,7 @@ bool ivshmem_process()
|
|||||||
if (index > 0xFFFF)
|
if (index > 0xFFFF)
|
||||||
{
|
{
|
||||||
DEBUG_ERROR("invalid index > 0xFFFF");
|
DEBUG_ERROR("invalid index > 0xFFFF");
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (index == ivshmem.server.clientID)
|
if (index == ivshmem.server.clientID)
|
||||||
@ -522,6 +522,6 @@ bool ivshmem_kick_irq(uint16_t clientID, uint16_t vector)
|
|||||||
if (write(fd, &kick, sizeof(kick)) == sizeof(kick))
|
if (write(fd, &kick, sizeof(kick)) == sizeof(kick))
|
||||||
return true;
|
return true;
|
||||||
|
|
||||||
DEBUG_ERROR("failed to send kick");
|
DEBUG_ERROR("failed to send kick");
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
Loading…
Reference in New Issue
Block a user