diff options
author | Lukas Fleischer <cgit@cryptocrack.de> | 2013-03-04 00:04:29 (JST) |
---|---|---|
committer | Lukas Fleischer <cgit@cryptocrack.de> | 2013-03-04 09:12:48 (JST) |
commit | 53bc747d311d18642fa3ad0cc0de34f3899ed1f4 (patch) | |
tree | 97e6fa2e4e7300f55a180917059b71e566c260fe /scan-tree.c | |
parent | 7f4e8c33aeb65bdc5695c9fd13ec1ceb100303c7 (diff) | |
download | cgit-53bc747d311d18642fa3ad0cc0de34f3899ed1f4.zip cgit-53bc747d311d18642fa3ad0cc0de34f3899ed1f4.tar.gz |
Fix several whitespace errors
* Remove whitespace at the end of lines.
* Replace space indentation by tabs.
* Add whitespace before/after several operators ("+", "-", "*", ...)
* Add whitespace to assignments ("foo = bar;").
* Fix whitespace in parameter lists ("foobar(foo, bar, 42)").
Signed-off-by: Lukas Fleischer <cgit@cryptocrack.de>
Diffstat (limited to 'scan-tree.c')
-rw-r--r-- | scan-tree.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/scan-tree.c b/scan-tree.c index 6ce8036..98a99c9 100644 --- a/scan-tree.c +++ b/scan-tree.c | |||
@@ -106,7 +106,7 @@ static void add_repo(const char *base, const char *path, repo_config_fn fn) | |||
106 | config_fn = fn; | 106 | config_fn = fn; |
107 | if (ctx.cfg.enable_git_config) | 107 | if (ctx.cfg.enable_git_config) |
108 | git_config_from_file(gitconfig_config, fmt("%s/config", path), NULL); | 108 | git_config_from_file(gitconfig_config, fmt("%s/config", path), NULL); |
109 | 109 | ||
110 | if (ctx.cfg.remove_suffix) | 110 | if (ctx.cfg.remove_suffix) |
111 | if ((p = strrchr(repo->url, '.')) && !strcmp(p, ".git")) | 111 | if ((p = strrchr(repo->url, '.')) && !strcmp(p, ".git")) |
112 | *p = '\0'; | 112 | *p = '\0'; |
@@ -222,7 +222,7 @@ void scan_projects(const char *path, const char *projectsfile, repo_config_fn fn | |||
222 | char line[MAX_PATH * 2], *z; | 222 | char line[MAX_PATH * 2], *z; |
223 | FILE *projects; | 223 | FILE *projects; |
224 | int err; | 224 | int err; |
225 | 225 | ||
226 | projects = fopen(projectsfile, "r"); | 226 | projects = fopen(projectsfile, "r"); |
227 | if (!projects) { | 227 | if (!projects) { |
228 | fprintf(stderr, "Error opening projectsfile %s: %s (%d)\n", | 228 | fprintf(stderr, "Error opening projectsfile %s: %s (%d)\n", |