X-Git-Url: http://git.ozlabs.org/?a=blobdiff_plain;f=ccan%2Fcrcsync%2F_info;h=e6d51784e87d917e16308f68e93b45846f5e7c7c;hb=9a483e66096528915f59d875931a48eab523ca82;hp=3713c777cc5532ea8bb11c91064fa9d7b92f3b43;hpb=02bc230bf9f08a7941b571358f115893b2b6d786;p=ccan diff --git a/ccan/crcsync/_info b/ccan/crcsync/_info index 3713c777..e6d51784 100644 --- a/ccan/crcsync/_info +++ b/ccan/crcsync/_info @@ -12,7 +12,8 @@ * // Calculate checksums of file (3-arg mode) * // Or print differences between file and checksums (4+ arg mode) * #include - * #include + * #include + * #include * #include * #include * #include @@ -37,10 +38,11 @@ * errx(1, "Usage: %s ...\n" * "OR: %s ", argv[0], argv[0]); * - * file = grab_file(NULL, argv[2], &len); + * file = grab_file(NULL, argv[2]); * if (!file) * err(1, "Opening file %s", argv[2]); - * + * len = tal_count(file) - 1; + * * if (argc == 3) { * // Short form prints CRCs of file for use in long form. * used = (len + blocksize - 1) / blocksize;