mirror of
https://gitlab.freedesktop.org/wayland/wayland.git
synced 2025-10-29 05:40:16 -04:00
connection: Add comments explaining safety
No functional change intended. Signed-off-by: Demi Marie Obenour <demi@invisiblethingslab.com>
This commit is contained in:
parent
9e9de6c9cd
commit
f00586ee5f
1 changed files with 3 additions and 0 deletions
|
|
@ -1052,7 +1052,10 @@ wl_connection_demarshal(struct wl_connection *connection,
|
|||
goto err;
|
||||
}
|
||||
|
||||
/* This ring buffer will always have a multiple of sizeof(int)
|
||||
* bytes in it. */
|
||||
ring_buffer_copy(&connection->fds_in, &fd, sizeof fd);
|
||||
/* This can wrap but that is okay. */
|
||||
connection->fds_in.tail += sizeof fd;
|
||||
closure->args[i].h = fd;
|
||||
break;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue