From: Lennart Poettering Date: Thu, 25 Oct 2018 11:48:25 +0000 (+0200) Subject: tmpfiles: rename second parameter to GREEDY_REALLOC() 'allocated' X-Git-Tag: v240~265^2~15 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=647687141ad36c67f1fe1405e7ca4f8b05ec6102;p=thirdparty%2Fsystemd.git tmpfiles: rename second parameter to GREEDY_REALLOC() 'allocated' We pretty much always name it like that, and it is very descriptive, hence let's stick to that nomenclature here. --- diff --git a/src/tmpfiles/tmpfiles.c b/src/tmpfiles/tmpfiles.c index 7819d96c672..bad7fb60637 100644 --- a/src/tmpfiles/tmpfiles.c +++ b/src/tmpfiles/tmpfiles.c @@ -136,7 +136,7 @@ typedef struct Item { typedef struct ItemArray { Item *items; size_t count; - size_t size; + size_t allocated; } ItemArray; typedef enum DirectoryType { @@ -2795,7 +2795,7 @@ static int parse_line(const char *fname, unsigned line, const char *buffer, bool return log_oom(); } - if (!GREEDY_REALLOC(existing->items, existing->size, existing->count + 1)) + if (!GREEDY_REALLOC(existing->items, existing->allocated, existing->count + 1)) return log_oom(); memcpy(existing->items + existing->count++, &i, sizeof(i));