On Fri, Mar 06 2020, Sebastian Benoit <[email protected]> wrote:
> Robert Scheck([email protected]) on 2020.03.06 14:02:26 +0100:
>> On Fri, 06 Mar 2020, Job Snijders wrote:
>> > I believe Robert is referring to this snippet of code:
>> >
>> >
>> > https://patch-diff.githubusercontent.com/raw/kristapsdz/rpki-client/pull/21.patch
>>
>> Exactly.
>
> Ah, i thought it was some diff to bird! Thanks, i'll tkae care of it.
One tweak, fwiw:
--8<--
if (fprintf(out, "define force_roa_table_update = %ld;\n\n"
"roa4 table %s4;\nroa6 table %s6;\n\n"
"protocol static {\n\troa4 { table %s4; };\n\n",
(long) now, bird_tablename, bird_tablename, bird_tablename) < 0)
return -1;
-->8--
The pattern to print time_t is to use %lld and a (long long) cast.
--
jca | PGP : 0x1524E7EE / 5135 92C1 AD36 5293 2BDF DDCC 0DFA 74AE 1524 E7EE