diff options
author | Michael Drake <michael.drake@codethink.co.uk> | 2017-09-04 14:56:51 +0100 |
---|---|---|
committer | Michael Drake <michael.drake@codethink.co.uk> | 2017-09-04 14:56:51 +0100 |
commit | 2fcb157f28b152ba32e89baddbd811b0d6e76b79 (patch) | |
tree | 30f96332ac7993ff4acf88b4892f922a80ddd393 /src/select/properties/cursor.c | |
parent | 2fc4177a09cc6fc6706f84dbe157077a41b6e22b (diff) | |
download | libcss-2fcb157f28b152ba32e89baddbd811b0d6e76b79.tar.gz libcss-2fcb157f28b152ba32e89baddbd811b0d6e76b79.tar.bz2 |
Strip trailing whitespace.
Diffstat (limited to 'src/select/properties/cursor.c')
-rw-r--r-- | src/select/properties/cursor.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/select/properties/cursor.c b/src/select/properties/cursor.c index 1ca497f..6effdb5 100644 --- a/src/select/properties/cursor.c +++ b/src/select/properties/cursor.c @@ -14,9 +14,9 @@ #include "select/properties/properties.h" #include "select/properties/helpers.h" -css_error css__cascade_cursor(uint32_t opv, css_style *style, +css_error css__cascade_cursor(uint32_t opv, css_style *style, css_select_state *state) -{ +{ uint16_t value = CSS_CURSOR_INHERIT; lwc_string **uris = NULL; uint32_t n_uris = 0; @@ -33,7 +33,7 @@ css_error css__cascade_cursor(uint32_t opv, css_style *style, &uri); advance_bytecode(style, sizeof(css_code_t)); - temp = realloc(uris, + temp = realloc(uris, (n_uris + 1) * sizeof(lwc_string *)); if (temp == NULL) { if (uris != NULL) { @@ -111,7 +111,7 @@ css_error css__cascade_cursor(uint32_t opv, css_style *style, if (n_uris > 0) { lwc_string **temp; - temp = realloc(uris, + temp = realloc(uris, (n_uris + 1) * sizeof(lwc_string *)); if (temp == NULL) { free(uris); @@ -148,7 +148,7 @@ css_error css__set_cursor_from_hint(const css_hint *hint, error = set_cursor(style, hint->status, hint->data.strings); - for (item = hint->data.strings; + for (item = hint->data.strings; item != NULL && (*item) != NULL; item++) { lwc_string_unref(*item); } @@ -189,12 +189,12 @@ css_error css__compose_cursor(const css_computed_style *parent, for (i = urls; (*i) != NULL; i++) n_urls++; - copy = malloc((n_urls + 1) * + copy = malloc((n_urls + 1) * sizeof(lwc_string *)); if (copy == NULL) return CSS_NOMEM; - memcpy(copy, urls, (n_urls + 1) * + memcpy(copy, urls, (n_urls + 1) * sizeof(lwc_string *)); } |