Coding style fixes
- opening braces are on the same line as the if statement
- opening braces are not on the same line as the function name
- space between for/while/if and opening parenthesis
Signed-off-by: Dawid Gajownik <gajownik@gmail.com>
Reviewed-by: Derek Foreman <derekf@osg.samsung.com>
diff --git a/clients/eventdemo.c b/clients/eventdemo.c
index dc69fd6..bdad6fd 100644
--- a/clients/eventdemo.c
+++ b/clients/eventdemo.c
@@ -172,8 +172,8 @@
int32_t x, y;
struct eventdemo *e = data;
- if(log_focus) {
- if(device) {
+ if (log_focus) {
+ if (device) {
input_get_position(device, &x, &y);
printf("focus x: %d, y: %d\n", x, y);
} else {
@@ -200,7 +200,7 @@
{
uint32_t modifiers = input_get_modifiers(input);
- if(!log_key)
+ if (!log_key)
return;
printf("key key: %d, unicode: %d, state: %s, modifiers: 0x%x\n",
@@ -300,7 +300,7 @@
struct eventdemo *e;
e = malloc(sizeof (struct eventdemo));
- if(e == NULL)
+ if (e == NULL)
return NULL;
e->window = window_create(d);