Andrew's git
/
gitweb.git
/ diff
summary
|
log
|
commit
| diff |
tree
commit
grep
author
committer
pickaxe
?
re
http: rename 'new' variables
author
Brandon Williams
<bmwill@google.com>
Wed, 14 Feb 2018 18:59:42 +0000
(10:59 -0800)
committer
Junio C Hamano
<gitster@pobox.com>
Thu, 22 Feb 2018 18:08:05 +0000
(10:08 -0800)
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>
http.c
patch
|
blob
|
history
raw
|
patch
|
inline
| side by side (parent:
d8f7180
)
diff --git
a/http.c
b/http.c
index 5977712712b22d9076d8cd5ccda0fe12b3057d27..41cfa41a95120389ee2a7fd1b3ab6ca2316e399c 100644
(file)
--- a/
http.c
+++ b/
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 = fill;
- new->next = NULL;
+ new
_fill
->data = data;
+ new
_fill
->fill = fill;
+ new
_fill
->next = NULL;
while (*linkp)
linkp = &(*linkp)->next;
while (*linkp)
linkp = &(*linkp)->next;
- *linkp = new;
+ *linkp = new
_fill
;
}
void fill_active_slots(void)
}
void fill_active_slots(void)