Andrew's git
/
gitweb.git
/ diff
summary
|
log
|
commit
| diff |
tree
commit
grep
author
committer
pickaxe
?
re
help: rename 'new' variables
author
Brandon Williams
<bmwill@google.com>
Wed, 14 Feb 2018 18:59:32 +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>
builtin/help.c
patch
|
blob
|
history
raw
|
patch
|
inline
| side by side (parent:
c8a3ea1
)
diff --git
a/builtin/help.c
b/builtin/help.c
index d3c8fc40820faa10f7c9004560159986b2900e9e..598867cfea40c6e0df25111c5484dde5d2cd8b47 100644
(file)
--- a/
builtin/help.c
+++ b/
builtin/help.c
@@
-194,11
+194,11
@@
static void do_add_man_viewer_info(const char *name,
size_t len,
const char *value)
{
size_t len,
const char *value)
{
- struct man_viewer_info_list *new;
- FLEX_ALLOC_MEM(new, name, name, len);
- new->info = xstrdup(value);
- new->next = man_viewer_info_list;
- man_viewer_info_list = new;
+ struct man_viewer_info_list *new
_man_viewer
;
+ FLEX_ALLOC_MEM(new
_man_viewer
, name, name, len);
+ new
_man_viewer
->info = xstrdup(value);
+ new
_man_viewer
->next = man_viewer_info_list;
+ man_viewer_info_list = new
_man_viewer
;
}
static int add_man_viewer_path(const char *name,
}
static int add_man_viewer_path(const char *name,