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>
This commit is contained in:
Brian Gianforcaro 2009-09-01 01:35:10 -04:00 committed by Junio C Hamano
parent 554555ac7d
commit eeefa7c90e
13 changed files with 28 additions and 30 deletions

View File

@ -55,10 +55,9 @@ static inline struct llist_item *llist_item_get(void)
} else {
int i = 1;
new = xmalloc(sizeof(struct llist_item) * BLKSIZE);
for(;i < BLKSIZE; i++) {
for (; i < BLKSIZE; i++)
llist_item_put(&new[i]);
}
}
return new;
}

3
var.c
View File

@ -21,10 +21,9 @@ 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)
{