diff options
Diffstat (limited to 'meta/recipes-devtools/elfutils/files/0001-debuginfod-debuginfod-client.c-use-long-for-cache-ti.patch')
-rw-r--r-- | meta/recipes-devtools/elfutils/files/0001-debuginfod-debuginfod-client.c-use-long-for-cache-ti.patch | 45 |
1 files changed, 0 insertions, 45 deletions
diff --git a/meta/recipes-devtools/elfutils/files/0001-debuginfod-debuginfod-client.c-use-long-for-cache-ti.patch b/meta/recipes-devtools/elfutils/files/0001-debuginfod-debuginfod-client.c-use-long-for-cache-ti.patch deleted file mode 100644 index 089f1a2210..0000000000 --- a/meta/recipes-devtools/elfutils/files/0001-debuginfod-debuginfod-client.c-use-long-for-cache-ti.patch +++ /dev/null | |||
@@ -1,45 +0,0 @@ | |||
1 | From a0852044907110479d0fb212dda2c5e45af2d3aa Mon Sep 17 00:00:00 2001 | ||
2 | From: Alexander Kanavin <alex@linutronix.de> | ||
3 | Date: Thu, 9 Dec 2021 10:43:06 +0100 | ||
4 | Subject: [PATCH] debuginfod/debuginfod-client.c: use long for cache time | ||
5 | configurations | ||
6 | |||
7 | time_t is platform dependent and some of architectures e.g. | ||
8 | x32, riscv32, arc use 64bit time_t even while they are 32bit | ||
9 | architectures, therefore directly using integer printf formats will not | ||
10 | work portably. | ||
11 | |||
12 | Use a plain long everywhere as the intervals are small enough | ||
13 | that it will not be problematic. | ||
14 | |||
15 | Upstream-Status: Submitted [via email to mark@klomp.org,elfutils-devel@sourceware.org] | ||
16 | Signed-off-by: Alexander Kanavin <alex@linutronix.de> | ||
17 | --- | ||
18 | debuginfod/debuginfod-client.c | 6 +++--- | ||
19 | 1 file changed, 3 insertions(+), 3 deletions(-) | ||
20 | |||
21 | diff --git a/debuginfod/debuginfod-client.c b/debuginfod/debuginfod-client.c | ||
22 | index c875ee6..11e0fd5 100644 | ||
23 | --- a/debuginfod/debuginfod-client.c | ||
24 | +++ b/debuginfod/debuginfod-client.c | ||
25 | @@ -134,17 +134,17 @@ struct debuginfod_client | ||
26 | how frequently the cache should be cleaned. The file's st_mtime represents | ||
27 | the time of last cleaning. */ | ||
28 | static const char *cache_clean_interval_filename = "cache_clean_interval_s"; | ||
29 | -static const time_t cache_clean_default_interval_s = 86400; /* 1 day */ | ||
30 | +static const long cache_clean_default_interval_s = 86400; /* 1 day */ | ||
31 | |||
32 | /* The cache_miss_default_s within the debuginfod cache specifies how | ||
33 | frequently the 000-permision file should be released.*/ | ||
34 | -static const time_t cache_miss_default_s = 600; /* 10 min */ | ||
35 | +static const long cache_miss_default_s = 600; /* 10 min */ | ||
36 | static const char *cache_miss_filename = "cache_miss_s"; | ||
37 | |||
38 | /* The cache_max_unused_age_s file within the debuginfod cache specifies the | ||
39 | the maximum time since last access that a file will remain in the cache. */ | ||
40 | static const char *cache_max_unused_age_filename = "max_unused_age_s"; | ||
41 | -static const time_t cache_default_max_unused_age_s = 604800; /* 1 week */ | ||
42 | +static const long cache_default_max_unused_age_s = 604800; /* 1 week */ | ||
43 | |||
44 | /* Location of the cache of files downloaded from debuginfods. | ||
45 | The default parent directory is $HOME, or '/' if $HOME doesn't exist. */ | ||