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>

Brandon Williams committed Feb 14, 2018 at 10:59 UTC ee6e0653519ce188b1503b77fcae527877e92ae0
1 file changed +5 -5
http.c
+5 -5
@@ -1194,14 +1194,14 @@ static struct fill_chain *fill_cfg;
1194
1195 void add_fill_function(void *data, int (*fill)(void *))
1196 {
1197 - struct fill_chain *new = xmalloc(sizeof(*new));
1197 + struct fill_chain *new_fill = xmalloc(sizeof(*new_fill));
1198 struct fill_chain **linkp = &fill_cfg;
1199 - new->data = data;
1200 - new->fill = fill;
1201 - new->next = NULL;
1199 + new_fill->data = data;
1200 + new_fill->fill = fill;
1201 + new_fill->next = NULL;
1202 while (*linkp)
1203 linkp = &(*linkp)->next;
1204 - *linkp = new;
1204 + *linkp = new_fill;
1205 }
1206
1207 void fill_active_slots(void)