mirror of
https://gitlab.freedesktop.org/wayland/wayland.git
synced 2025-11-18 06:59:46 -05:00
Stylistic nitpicking
No space between '!' and its argument, prefer i++ over ++i.
This commit is contained in:
parent
2fc248dc2c
commit
8f1386fb50
1 changed files with 5 additions and 5 deletions
|
|
@ -241,7 +241,7 @@ decode_cmsg(struct wl_buffer *buffer, struct msghdr *msg)
|
||||||
if (size > max || overflow) {
|
if (size > max || overflow) {
|
||||||
overflow = 1;
|
overflow = 1;
|
||||||
size /= sizeof(int32_t);
|
size /= sizeof(int32_t);
|
||||||
for (i = 0; i < size; ++i)
|
for (i = 0; i < size; i++)
|
||||||
close(((int*)CMSG_DATA(cmsg))[i]);
|
close(((int*)CMSG_DATA(cmsg))[i]);
|
||||||
} else {
|
} else {
|
||||||
wl_buffer_put(buffer, CMSG_DATA(cmsg), size);
|
wl_buffer_put(buffer, CMSG_DATA(cmsg), size);
|
||||||
|
|
@ -379,7 +379,7 @@ wl_message_count_arrays(const struct wl_message *message)
|
||||||
|
|
||||||
for (i = 0, arrays = 0; message->signature[i]; i++) {
|
for (i = 0, arrays = 0; message->signature[i]; i++) {
|
||||||
if (message->signature[i] == 'a')
|
if (message->signature[i] == 'a')
|
||||||
++arrays;
|
arrays++;
|
||||||
}
|
}
|
||||||
|
|
||||||
return arrays;
|
return arrays;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue