Skip to content

Commit

Permalink
[PATCH] Declare stacked variables before the first statement.
Browse files Browse the repository at this point in the history
Signed-off-by: Thomas Glanzmann <sithglan@stud.uni-erlangen.de>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
  • Loading branch information
Thomas Glanzmann authored and Linus Torvalds committed May 19, 2005
1 parent 5b486c3 commit 9669e17
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions diff.c
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ static void builtin_diff(const char *name_a,
const char *name_b,
struct diff_tempfile *temp)
{
int i, next_at;
int i, next_at, cmd_size;
const char *diff_cmd = "diff -L'%s%s' -L'%s%s'";
const char *diff_arg = "'%s' '%s'||:"; /* "||:" is to return 0 */
const char *input_name_sq[2];
Expand All @@ -112,7 +112,7 @@ static void builtin_diff(const char *name_a,
* we use 2 spaces around diff-opts, and we need to count
* terminating NUL, so we subtract 9 here.
*/
int cmd_size = (strlen(diff_cmd) + strlen(diff_opts) +
cmd_size = (strlen(diff_cmd) + strlen(diff_opts) +
strlen(diff_arg) - 9);
for (i = 0; i < 2; i++) {
input_name_sq[i] = sq_expand(temp[i].name);
Expand Down

0 comments on commit 9669e17

Please sign in to comment.