Skip to content

Commit aebb267

Browse files
Ingo MolnarPetr Baudis
authored andcommitted
[PATCH] Whitespace Fixes
Trivial whitespace fixes. From: Ingo Molnar <[email protected]> Signed-off-by: Ingo Molnar <[email protected]> Signed-off-by: Petr Baudis <[email protected]>
1 parent 42d545e commit aebb267

File tree

7 files changed

+9
-9
lines changed

7 files changed

+9
-9
lines changed

commit-tree.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ static void add_buffer(char **bufp, unsigned int *sizep, const char *fmt, ...)
4141
alloc = (size + 32767) & ~32767;
4242
buf = *bufp;
4343
if (newsize > alloc) {
44-
alloc = (newsize + 32767) & ~32767;
44+
alloc = (newsize + 32767) & ~32767;
4545
buf = realloc(buf, alloc);
4646
*bufp = buf;
4747
}

diff-tree.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ static int compare_tree_entry(void *tree1, unsigned long size1, void *tree2, uns
103103

104104
/*
105105
* If the filemode has changed to/from a directory from/to a regular
106-
* file, we need to consider it a remove and an add.
106+
* file, we need to consider it a remove and an add.
107107
*/
108108
if (S_ISDIR(mode1) != S_ISDIR(mode2)) {
109109
show_file("-", tree1, size1, base);

init-db.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ int main(int argc, char **argv)
3030
}
3131

3232
/*
33-
* The default case is to have a DB per managed directory.
33+
* The default case is to have a DB per managed directory.
3434
*/
3535
sha1_dir = DEFAULT_DB_ENVIRONMENT;
3636
fprintf(stderr, "defaulting to private storage area\n");

read-cache.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ void *map_sha1_file(const unsigned char *sha1, unsigned long *size)
136136
return NULL;
137137
}
138138
if (fstat(fd, &st) < 0) {
139-
close(fd);
139+
close(fd);
140140
return NULL;
141141
}
142142
map = mmap(NULL, st.st_size, PROT_READ, MAP_PRIVATE, fd, 0);

show-diff.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
*/
66
#include "cache.h"
77

8-
static void show_differences(char *name,
8+
static void show_differences(char *name,
99
void *old_contents, unsigned long long old_size)
1010
{
1111
static char cmd[1000];
@@ -33,7 +33,7 @@ static void show_diff_empty(struct cache_entry *ce)
3333
printf("--- %s\n", ce->name);
3434
printf("+++ /dev/null\n");
3535
p = old;
36-
end = old + size;
36+
end = old + size;
3737
while (p < end)
3838
if (*p++ == '\n')
3939
lines ++;
@@ -44,7 +44,7 @@ static void show_diff_empty(struct cache_entry *ce)
4444
if (startline) {
4545
putchar('-');
4646
startline = 0;
47-
}
47+
}
4848
putchar(c);
4949
if (c == '\n')
5050
startline = 1;

show-files.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ static void add_name(const char *pathname, int len)
4141
* handle them at all yet. Maybe that will change some day.
4242
*
4343
* Also, we currently ignore all names starting with a dot.
44-
* That likely will not change.
44+
* That likely will not change.
4545
*/
4646
static void read_directory(const char *path, const char *base, int baselen)
4747
{

update-cache.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -213,7 +213,7 @@ static void refresh_cache(void)
213213
* are hidden, for chist sake.
214214
*
215215
* Also, we don't want double slashes or slashes at the
216-
* end that can make pathnames ambiguous.
216+
* end that can make pathnames ambiguous.
217217
*/
218218
static int verify_path(char *path)
219219
{

0 commit comments

Comments
 (0)