-
Notifications
You must be signed in to change notification settings - Fork 35
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
72bea9a
commit 7574a15
Showing
4 changed files
with
35 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
28 changes: 28 additions & 0 deletions
28
deps-packaging/git/clar-stop-passing-timezone-to-gettimeofday.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
commit ca41a29b8bb19f0240eac0f872a7b958fb1f5f19 | ||
Author: Patrick Steinhardt <[email protected]> | ||
Date: Thu Sep 5 08:04:37 2024 +0200 | ||
|
||
clar: stop passing a timezone to gettimeofday(3P) | ||
|
||
According to gettimeofday(3P), passing a non-NULL timezone pointer to | ||
the function is unspecified behaviour. This is also being warned about | ||
by compilers when compiling with strict C90 standard and without most of | ||
the extensions. | ||
|
||
Adapt the code accordingly. | ||
|
||
diff --git t/unit-tests/clar.c t/unit-tests/clar.c | ||
index cef0f02..e593bb1 100644 | ||
--- t/unit-tests/clar/clar.c | ||
+++ t/unit-tests/clar/clar.c | ||
@@ -271,9 +271,7 @@ static double clar_time_diff(clar_time *start, clar_time *end) | ||
|
||
static void clar_time_now(clar_time *out) | ||
{ | ||
- struct timezone tz; | ||
- | ||
- gettimeofday(out, &tz); | ||
+ gettimeofday(out, NULL); | ||
} | ||
|
||
static double clar_time_diff(clar_time *start, clar_time *end) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
b138811e16838f669a2516e40f09d50500e1c7fc541b5ab50ce84b98585e5230 git-2.46.0.tar.gz | ||
a84a7917e0ab608312834413f01fc01edc7844f9f9002ba69f3b4f4bcb8d937a git-2.47.0.tar.gz |