author | Junio C Hamano <gitster@pobox.com> | |
Sun, 24 Aug 2008 20:27:10 +0000 (13:27 -0700) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Tue, 26 Aug 2008 05:49:49 +0000 (22:49 -0700) | ||
commit | 460c201039471d22194ca871290c098bfe6ce6a3 | |
tree | ae11f59d2856912df84d0efc0fe5204da456bff6 | tree | snapshot |
parent | 3bd62c21760f92996569bb9335b399a9545a5c41 | commit | diff |
daemon.c: minor style fixup
* "else" on the same line as "}" that closes corresponding "if (...) {";
* multi-line comments begin with "/*\n";
* sizeof, even it is not a function, is written as "sizeof(...)";
* no need to check x?alloc() return value -- it would have died;
* "if (...) { ... }" that covers the whole function body can be dedented
by returning from the function early with "if (!...) return;";
* SP on each side of an operator, i.e. "a > 0", not "a>0";
Also removes stale comment describing how remove_child() used to do its
thing.
Signed-off-by: Junio C Hamano <gitster@pobox.com>:
Signed-off-by: Junio C Hamano <gitster@pobox.com>
* "else" on the same line as "}" that closes corresponding "if (...) {";
* multi-line comments begin with "/*\n";
* sizeof, even it is not a function, is written as "sizeof(...)";
* no need to check x?alloc() return value -- it would have died;
* "if (...) { ... }" that covers the whole function body can be dedented
by returning from the function early with "if (!...) return;";
* SP on each side of an operator, i.e. "a > 0", not "a>0";
Also removes stale comment describing how remove_child() used to do its
thing.
Signed-off-by: Junio C Hamano <gitster@pobox.com>:
Signed-off-by: Junio C Hamano <gitster@pobox.com>
daemon.c | diff | blob | history |