Skip to content

Commit 78db709

Browse files
committed
Merge branch 'maint'
* maint: add missing && to submodule-merge testcase test-date: fix sscanf type conversion
2 parents 5b5275f + 420432d commit 78db709

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

t/t7405-submodule-merge.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ test_expect_success setup '
4545
git commit -m sub-b) &&
4646
git add sub &&
4747
test_tick &&
48-
git commit -m b
48+
git commit -m b &&
4949
5050
git checkout -b c a &&
5151
git merge -s ours b &&

test-date.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,12 +20,12 @@ static void parse_dates(char **argv, struct timeval *now)
2020
{
2121
for (; *argv; argv++) {
2222
char result[100];
23-
time_t t;
23+
unsigned long t;
2424
int tz;
2525

2626
result[0] = 0;
2727
parse_date(*argv, result, sizeof(result));
28-
if (sscanf(result, "%ld %d", &t, &tz) == 2)
28+
if (sscanf(result, "%lu %d", &t, &tz) == 2)
2929
printf("%s -> %s\n",
3030
*argv, show_date(t, tz, DATE_ISO8601));
3131
else

0 commit comments

Comments
 (0)