CCAN imported from http://ccodearchive.net.

CCAN version: init-2548-gab87e56b
