]>
Commit | Line | Data |
---|---|---|
98ebce87 JB |
1 | --- elfutils-0.185/debuginfod/debuginfod-client.c.orig 2021-05-22 20:25:24.000000000 +0200 |
2 | +++ elfutils-0.185/debuginfod/debuginfod-client.c 2021-06-11 19:22:31.611417051 +0200 | |
3 | @@ -267,7 +267,11 @@ debuginfod_init_cache (char *cache_path, | |
637c1908 JR |
4 | if (fd < 0) |
5 | return -errno; | |
6 | ||
7 | +#if defined(__x86_64__) && defined(__ILP32__) | |
8 | + if (dprintf(fd, "%lld", cache_clean_default_interval_s) < 0) | |
9 | +#else | |
10 | if (dprintf(fd, "%ld", cache_clean_default_interval_s) < 0) | |
11 | +#endif | |
12 | return -errno; | |
13 | ||
14 | /* init max age config file. */ | |
98ebce87 | 15 | @@ -275,7 +279,11 @@ debuginfod_init_cache (char *cache_path, |
8c7040e4 | 16 | && (fd = open(maxage_path, O_CREAT | O_RDWR, DEFFILEMODE)) < 0) |
637c1908 JR |
17 | return -errno; |
18 | ||
19 | +#if defined(__x86_64__) && defined(__ILP32__) | |
20 | + if (dprintf(fd, "%lld", cache_default_max_unused_age_s) < 0) | |
21 | +#else | |
22 | if (dprintf(fd, "%ld", cache_default_max_unused_age_s) < 0) | |
23 | +#endif | |
24 | return -errno; | |
25 | ||
26 | return 0; |