diff options
author | Brian Gianforcaro <b.gianfo@gmail.com> | 2009-09-01 01:35:10 -0400 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2009-08-31 23:26:28 -0700 |
commit | eeefa7c90e1b754a2b01d73fd93aaf90afdc4914 (patch) | |
tree | fa561a4acef6f4c1cb8bd0b75a194e3644b99d3e /var.c | |
parent | 554555ac7da0b9b78bd97cff05daa60498eb1bba (diff) | |
download | git-eeefa7c90e1b754a2b01d73fd93aaf90afdc4914.tar.gz git-eeefa7c90e1b754a2b01d73fd93aaf90afdc4914.tar.xz |
Style fixes, add a space after if/for/while.
The majority of code in core git appears to use a single
space after if/for/while. This is an attempt to bring more
code to this standard. These are entirely cosmetic changes.
Signed-off-by: Brian Gianforcaro <b.gianfo@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'var.c')
-rw-r--r-- | var.c | 5 |
1 files changed, 2 insertions, 3 deletions
@@ -21,9 +21,8 @@ static struct git_var git_vars[] = { static void list_vars(void) { struct git_var *ptr; - for(ptr = git_vars; ptr->read; ptr++) { + for (ptr = git_vars; ptr->read; ptr++) printf("%s=%s\n", ptr->name, ptr->read(IDENT_WARN_ON_NO_NAME)); - } } static const char *read_var(const char *var) @@ -31,7 +30,7 @@ static const char *read_var(const char *var) struct git_var *ptr; const char *val; val = NULL; - for(ptr = git_vars; ptr->read; ptr++) { + for (ptr = git_vars; ptr->read; ptr++) { if (strcmp(var, ptr->name) == 0) { val = ptr->read(IDENT_ERROR_ON_NO_NAME); break; |