Commit 92ee7edb authored by Rusty Russell's avatar Rusty Russell

ccanlint: optimize the timeout case

This takes my "make fastcheck" from about 57 seconds to about 43 seconds.
parent dca59645
......@@ -145,6 +145,8 @@ char *run_command(const void *ctx, unsigned int *time_ms, const char *fmt, ...)
if (!time_ms)
time_ms = &default_time;
else if (*time_ms == 0)
return talloc_strdup(ctx, "\n== TIMED OUT ==\n");
va_start(ap, fmt);
cmd = talloc_vasprintf(ctx, fmt, ap);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment