Skip to content

Commit

Permalink
bfd: use time_t to avoid implicit ptr type casting
Browse files Browse the repository at this point in the history
This fixes an incompatible pointer type [-Wincompatible-pointer-types]
issue when compiling keepalived with GCC 14 [1] in 32-bit architectures
where time_t size is 64 bits.

[1] https://gcc.gnu.org/gcc-14/porting_to.html
  • Loading branch information
athos-ribeiro committed Sep 26, 2024
1 parent a7f34c9 commit ef1df49
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion keepalived/bfd/bfd_data.c
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ static void
conf_write_sands(FILE *fp, const char *text, unsigned long sands)
{
char time_str[26];
long secs;
time_t secs;

if (sands == TIMER_NEVER) {
conf_write(fp, " %s = [disabled]", text);
Expand Down

0 comments on commit ef1df49

Please sign in to comment.