mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-04-28 16:17:38 -07:00
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>
34 lines
1.0 KiB
Diff
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 */
|
|
);
|
|
|