Skip to content

Commit

Permalink
build: fix compilation on i386
Browse files Browse the repository at this point in the history
```
plugins/keysend.c:136:47: error: format specifies type 'unsigned long' but the argument has type 'time_t' (aka 'int') [-Werror,-Wformat]
        ki->label = tal_fmt(ki, "keysend-%lu.%09lu", now.ts.tv_sec, now.ts.tv_nsec);
                                         ~~~         ^~~~~~~~~~~~~
                                         %d
```

Changelog-None
  • Loading branch information
vasild authored and ZmnSCPxj committed Jun 28, 2020
1 parent 42bf230 commit a3a37ea
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugins/keysend.c
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ static struct command_result *htlc_accepted_call(struct command *cmd,

ki = tal(cmd, struct keysend_in);
memcpy(&ki->payment_preimage, preimage_field->value, 32);
ki->label = tal_fmt(ki, "keysend-%lu.%09lu", now.ts.tv_sec, now.ts.tv_nsec);
ki->label = tal_fmt(ki, "keysend-%lu.%09lu", (unsigned long)now.ts.tv_sec, now.ts.tv_nsec);
ki->payload = tal_steal(ki, payload);
ki->preimage_field = preimage_field;

Expand Down

0 comments on commit a3a37ea

Please sign in to comment.