mirror of
https://github.com/NickHu/sway
synced 2025-02-06 20:46:17 +01:00
style
This commit is contained in:
parent
0490988673
commit
4c87498222
1 changed files with 1 additions and 2 deletions
|
@ -11,8 +11,7 @@ list_t *create_list(void) {
|
||||||
return list;
|
return list;
|
||||||
}
|
}
|
||||||
|
|
||||||
static
|
static void list_resize(list_t *list) {
|
||||||
void list_resize(list_t *list) {
|
|
||||||
if (list->length == list->capacity) {
|
if (list->length == list->capacity) {
|
||||||
list->capacity += 10;
|
list->capacity += 10;
|
||||||
list->items = realloc(list->items, sizeof(void*) * list->capacity);
|
list->items = realloc(list->items, sizeof(void*) * list->capacity);
|
||||||
|
|
Loading…
Add table
Reference in a new issue