Skip to content

Commit 8adda46

Browse files
bmwillgitster
authored andcommitted
help: 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>
1 parent c8a3ea1 commit 8adda46

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

builtin/help.c

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -194,11 +194,11 @@ static void do_add_man_viewer_info(const char *name,
194194
size_t len,
195195
const char *value)
196196
{
197-
struct man_viewer_info_list *new;
198-
FLEX_ALLOC_MEM(new, name, name, len);
199-
new->info = xstrdup(value);
200-
new->next = man_viewer_info_list;
201-
man_viewer_info_list = new;
197+
struct man_viewer_info_list *new_man_viewer;
198+
FLEX_ALLOC_MEM(new_man_viewer, name, name, len);
199+
new_man_viewer->info = xstrdup(value);
200+
new_man_viewer->next = man_viewer_info_list;
201+
man_viewer_info_list = new_man_viewer;
202202
}
203203

204204
static int add_man_viewer_path(const char *name,

0 commit comments

Comments
 (0)