зеркало из https://github.com/microsoft/git.git
http: rename 'new' variables
Rename C++ keyword in order to bring the codebase closer to being able to be compiled with a C++ compiler. Signed-off-by: Brandon Williams <bmwill@google.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:
Родитель
d8f71807c1
Коммит
ee6e065351
10
http.c
10
http.c
|
@ -1194,14 +1194,14 @@ static struct fill_chain *fill_cfg;
|
||||||
|
|
||||||
void add_fill_function(void *data, int (*fill)(void *))
|
void add_fill_function(void *data, int (*fill)(void *))
|
||||||
{
|
{
|
||||||
struct fill_chain *new = xmalloc(sizeof(*new));
|
struct fill_chain *new_fill = xmalloc(sizeof(*new_fill));
|
||||||
struct fill_chain **linkp = &fill_cfg;
|
struct fill_chain **linkp = &fill_cfg;
|
||||||
new->data = data;
|
new_fill->data = data;
|
||||||
new->fill = fill;
|
new_fill->fill = fill;
|
||||||
new->next = NULL;
|
new_fill->next = NULL;
|
||||||
while (*linkp)
|
while (*linkp)
|
||||||
linkp = &(*linkp)->next;
|
linkp = &(*linkp)->next;
|
||||||
*linkp = new;
|
*linkp = new_fill;
|
||||||
}
|
}
|
||||||
|
|
||||||
void fill_active_slots(void)
|
void fill_active_slots(void)
|
||||||
|
|
Загрузка…
Ссылка в новой задаче