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 /git.c | |
parent | 75b44066f3ed7cde238cdea1f0bf9e2f1744c820 (diff) | |
download | git-4b25d091ba53c758fae0096b8c0662371857b9d9.tar.gz git-4b25d091ba53c758fae0096b8c0662371857b9d9.tar.xz |
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 'git.c')
-rw-r--r-- | git.c | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -47,7 +47,7 @@ static void commit_pager_choice(void) { } } -static int handle_options(const char*** argv, int* argc, int* envchanged) +static int handle_options(const char ***argv, int *argc, int *envchanged) { int handled = 0; @@ -136,7 +136,7 @@ static int handle_alias(int *argcp, const char ***argv) int envchanged = 0, ret = 0, saved_errno = errno; const char *subdir; int count, option_count; - const char** new_argv; + const char **new_argv; const char *alias_command; char *alias_string; int unused_nongit; @@ -187,10 +187,10 @@ static int handle_alias(int *argcp, const char ***argv) "trace: alias expansion: %s =>", alias_command); - new_argv = xrealloc(new_argv, sizeof(char*) * + new_argv = xrealloc(new_argv, sizeof(char *) * (count + *argcp + 1)); /* insert after command name */ - memcpy(new_argv + count, *argv + 1, sizeof(char*) * *argcp); + memcpy(new_argv + count, *argv + 1, sizeof(char *) * *argcp); new_argv[count+*argcp] = NULL; *argv = new_argv; |