| 42 | } |
| 43 | |
| 44 | static char *fmt_time(const tal_t *ctx, u64 time) |
| 45 | { |
| 46 | /* ctime is not sane. Take pointer, returns \n in string. */ |
| 47 | time_t t = time; |
| 48 | const char *p = ctime(&t); |
| 49 | |
| 50 | return tal_fmt(ctx, "%.*s", (int)strcspn(p, "\n"), p); |
| 51 | } |
| 52 | |
| 53 | static bool must_str(bool expected, const char *complaint, const char *fieldname) |
| 54 | { |
no outgoing calls
no test coverage detected