X-Git-Url: http://git.ozlabs.org/?p=ccan;a=blobdiff_plain;f=ccan%2Ftypesafe_cb%2F_info;h=b4f379dd48b020c29bf8f27c8da88a37831e619a;hp=a3cdeab584bc346b9a629b796fdf6724521e4901;hb=61f58ff94e35c9b8ac5488554e2554bc5c9888b3;hpb=8fc7a90a8db345c4276419d11f8731afc63f65f5 diff --git a/ccan/typesafe_cb/_info b/ccan/typesafe_cb/_info index a3cdeab5..b4f379dd 100644 --- a/ccan/typesafe_cb/_info +++ b/ccan/typesafe_cb/_info @@ -1,6 +1,6 @@ +#include "config.h" #include #include -#include "config.h" /** * typesafe_cb - macros for safe callbacks. @@ -106,7 +106,7 @@ * // Silly game to find the longest chain of values. * int main(int argc, char *argv[]) * { - * int i, run = 1, num = argv[1] ? atoi(argv[1]) : 0; + * int i, run = 1, num = argc > 1 ? atoi(argv[1]) : 0; * * for (i = 1; i < 1024;) { * // Since run is an int, compiler checks "add" does too. @@ -135,7 +135,7 @@ * return 0; * } * - * License: LGPL (v2.1 or any later version) + * License: CC0 (Public domain) * Author: Rusty Russell */ int main(int argc, char *argv[])