got: update to 0.73.
This commit is contained in:
parent
6066b8747b
commit
cece714ffa
|
@ -0,0 +1,24 @@
|
|||
From: Christian Weisgerber <naddy@mips.inka.de>
|
||||
Date: Mon, 4 Jul 2022 15:13:11 +0000 (+0000)
|
||||
Subject: fix potential type mismatch between format specifier and argument
|
||||
X-Git-Url: https://git.gameoftrees.org/gitweb/?p=got.git;a=commitdiff_plain;h=b9a36ae5
|
||||
|
||||
fix potential type mismatch between format specifier and argument
|
||||
|
||||
Cast printf argument of type time_t to long long to match the %lld
|
||||
format specifier on platforms where this might not be the case.
|
||||
---
|
||||
|
||||
diff --git a/lib/sigs.c b/lib/sigs.c
|
||||
index 693a3a27..ac1b2637 100644
|
||||
--- a/lib/sigs.c
|
||||
+++ b/lib/sigs.c
|
||||
@@ -204,7 +204,7 @@ got_tag_write_signed_data(BUF *buf, struct got_tag_object *tag,
|
||||
got_date_format_gmtoff(gmtoff, sizeof(gmtoff),
|
||||
got_object_tag_get_tagger_gmtoff(tag));
|
||||
if (asprintf(&tagger, "%s %lld %s", got_object_tag_get_tagger(tag),
|
||||
- got_object_tag_get_tagger_time(tag), gmtoff) == -1) {
|
||||
+ (long long)got_object_tag_get_tagger_time(tag), gmtoff) == -1) {
|
||||
err = got_error_from_errno("asprintf");
|
||||
goto done;
|
||||
}
|
|
@ -1,6 +1,6 @@
|
|||
# Template file for 'got'
|
||||
pkgname=got
|
||||
version=0.71
|
||||
version=0.73
|
||||
revision=1
|
||||
wrksrc=got-portable-${version}
|
||||
build_style=gnu-configure
|
||||
|
@ -12,7 +12,7 @@ license="ISC"
|
|||
homepage="https://gameoftrees.org"
|
||||
changelog="https://gameoftrees.org/releases/CHANGES"
|
||||
distfiles="https://gameoftrees.org/releases/portable/got-portable-${version}.tar.gz"
|
||||
checksum="16a61f49e52e189606d8f4236423f912b5cae71b1d505ef1313b4fc3173108f0"
|
||||
checksum="f0753a7e745bb3975cdd915424827d76bdec6bd0832c443c77d84ae3121ca874"
|
||||
|
||||
post_install() {
|
||||
sed -n '/Copyright/,/PERFORMANCE/p' got/got.c > LICENSE
|
||||
|
|
Loading…
Reference in New Issue