diff options
| author | Kristian Høgsberg <krh@bitplanet.net> | 2013-02-26 13:40:34 -0500 |
|---|---|---|
| committer | Kristian Høgsberg <krh@bitplanet.net> | 2013-03-07 19:19:25 -0500 |
| commit | 52dd28e3b1acc2344fa27094e75c0461ad31f70a (patch) | |
| tree | 79969915f52abff83f6205c15270a85f50486923 | |
| parent | Clean up and refactor wl_closure and associated functions (diff) | |
| download | wayland-52dd28e3b1acc2344fa27094e75c0461ad31f70a.tar wayland-52dd28e3b1acc2344fa27094e75c0461ad31f70a.tar.gz wayland-52dd28e3b1acc2344fa27094e75c0461ad31f70a.tar.bz2 wayland-52dd28e3b1acc2344fa27094e75c0461ad31f70a.tar.lz wayland-52dd28e3b1acc2344fa27094e75c0461ad31f70a.tar.xz wayland-52dd28e3b1acc2344fa27094e75c0461ad31f70a.tar.zst wayland-52dd28e3b1acc2344fa27094e75c0461ad31f70a.zip | |
Stylistic nitpicking
No space between '!' and its argument, prefer i++ over ++i.
| -rw-r--r-- | src/connection.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/connection.c b/src/connection.c index 93f0105..e6c2b64 100644 --- a/src/connection.c +++ b/src/connection.c @@ -241,7 +241,7 @@ decode_cmsg(struct wl_buffer *buffer, struct msghdr *msg) if (size > max || overflow) { overflow = 1; size /= sizeof(int32_t); - for (i = 0; i < size; ++i) + for (i = 0; i < size; i++) close(((int*)CMSG_DATA(cmsg))[i]); } else { 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++) { if (message->signature[i] == 'a') - ++arrays; + arrays++; } return arrays; @@ -503,11 +503,11 @@ wl_closure_marshal(struct wl_object *sender, uint32_t opcode, case 'i': break; case 's': - if (! arg.nullable && args[i].s == NULL) + if (!arg.nullable && args[i].s == NULL) goto err_null; break; case 'o': - if (! arg.nullable && args[i].o == NULL) + if (!arg.nullable && args[i].o == NULL) goto err_null; break; case 'n': @@ -518,7 +518,7 @@ wl_closure_marshal(struct wl_object *sender, uint32_t opcode, closure->args[i].n = object ? object->id : 0; break; case 'a': - if (! arg.nullable && args[i].a == NULL) + if (!arg.nullable && args[i].a == NULL) goto err_null; break; case 'h': |
