Skip to content

Commit

Permalink
Merge branch 'maint'
Browse files Browse the repository at this point in the history
* maint:
  add missing && to submodule-merge testcase
  test-date: fix sscanf type conversion
  • Loading branch information
gitster committed Jul 7, 2010
2 parents 5b5275f + 420432d commit 78db709
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion t/t7405-submodule-merge.sh
Expand Up @@ -45,7 +45,7 @@ test_expect_success setup '
git commit -m sub-b) &&
git add sub &&
test_tick &&
git commit -m b
git commit -m b &&
git checkout -b c a &&
git merge -s ours b &&
Expand Down
4 changes: 2 additions & 2 deletions test-date.c
Expand Up @@ -20,12 +20,12 @@ static void parse_dates(char **argv, struct timeval *now)
{
for (; *argv; argv++) {
char result[100];
time_t t;
unsigned long t;
int tz;

result[0] = 0;
parse_date(*argv, result, sizeof(result));
if (sscanf(result, "%ld %d", &t, &tz) == 2)
if (sscanf(result, "%lu %d", &t, &tz) == 2)
printf("%s -> %s\n",
*argv, show_date(t, tz, DATE_ISO8601));
else
Expand Down

0 comments on commit 78db709

Please sign in to comment.