diff options
author | Felipe Contreras <felipe.contreras@gmail.com> | 2009-05-01 12:06:36 +0300 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2009-05-01 15:17:31 -0700 |
commit | 4b25d091ba53c758fae0096b8c0662371857b9d9 (patch) | |
tree | fc5bb9b0e2ffad8182f26a7efafae8571e613b48 /builtin-describe.c | |
parent | 75b44066f3ed7cde238cdea1f0bf9e2f1744c820 (diff) | |
download | git-4b25d091ba53c758fae0096b8c0662371857b9d9.tar.gz |
Fix a bunch of pointer declarations (codestyle)
Essentially; s/type* /type */ as per the coding guidelines.
Signed-off-by: Felipe Contreras <felipe.contreras@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'builtin-describe.c')
-rw-r--r-- | builtin-describe.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/builtin-describe.c b/builtin-describe.c index 3a007ed1ca..63c6a19da5 100644 --- a/builtin-describe.c +++ b/builtin-describe.c @@ -334,7 +334,7 @@ int cmd_describe(int argc, const char **argv, const char *prefix) die("--long is incompatible with --abbrev=0"); if (contains) { - const char **args = xmalloc((7 + argc) * sizeof(char*)); + const char **args = xmalloc((7 + argc) * sizeof(char *)); int i = 0; args[i++] = "name-rev"; args[i++] = "--name-only"; @@ -349,7 +349,7 @@ int cmd_describe(int argc, const char **argv, const char *prefix) args[i++] = s; } } - memcpy(args + i, argv, argc * sizeof(char*)); + memcpy(args + i, argv, argc * sizeof(char *)); args[i + argc] = NULL; return cmd_name_rev(i + argc, args, prefix); } |