gentoo/dev-libs/libvformat/files/libvformat-1.13-time_t.patch
NHOrus 043a826a03
dev-libs/libvformat: update EAPI 7 -> 8, fix incompatible pointers
Use new-er debian patchset
time_t was already used in most places, with this patch to fix
incompatible pointer types error, it's not surprisingly transformed
into 32-bit unsigned int.

Closes: https://github.com/gentoo/gentoo/pull/38980
Closes: https://bugs.gentoo.org/919257
Signed-off-by: NHOrus <jy6x2b32pie9@yahoo.com>
Closes: https://github.com/gentoo/gentoo/pull/40440
Signed-off-by: Sam James <sam@gentoo.org>
2025-02-10 08:49:21 +00:00

34 lines
1.0 KiB
Diff

Program already uses time_t everywhere else, use it in last possible place
https://bugs.gentoo.org/919257
--- a/src/vf_access_calendar.c
+++ b/src/vf_access_calendar.c
@@ -226,7 +226,7 @@
*---------------------------------------------------------------------------*/
bool_t vf_date_string_to_time(
- uint32_t *p_time, /* Output time value */
+ time_t *p_time, /* Output time value */
const char *p_string /* Input string */
)
{
@@ -298,7 +298,7 @@
}
else
{
- *p_time = (uint32_t)t;
+ *p_time = t;
}
}
}
--- a/vformat/vf_iface.h
+++ b/vformat/vf_iface.h
@@ -1203,7 +1203,7 @@
*---------------------------------------------------------------------------*/
extern VFORMATDECLSPEC bool_t vf_date_string_to_time(
- uint32_t *p_time, /* Output time value */
+ time_t *p_time, /* Output time value */
const char *p_string /* Input string */
);