projects
/
ccan
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
tdb2: don't cancel transactions on lock failures in tdb1 backend.
[ccan]
/
ccan
/
crcsync
/
_info
diff --git
a/ccan/crcsync/_info
b/ccan/crcsync/_info
index 3a98951c428c01739e35a2e2f365d0f977774997..5b200ca267b9ee97f664bc928307daecdb4299da 100644
(file)
--- a/
ccan/crcsync/_info
+++ b/
ccan/crcsync/_info
@@
-30,7
+30,7
@@
* size_t len, used, blocksize;
* char *file;
* struct crc_context *ctx;
* size_t len, used, blocksize;
* char *file;
* struct crc_context *ctx;
- * uint
32
_t *crcs;
+ * uint
64
_t *crcs;
* long res, i;
*
* if (argc < 3 || (blocksize = atoi(argv[1])) == 0)
* long res, i;
*
* if (argc < 3 || (blocksize = atoi(argv[1])) == 0)
@@
-44,10
+44,10
@@
* if (argc == 3) {
* // Short form prints CRCs of file for use in long form.
* used = (len + blocksize - 1) / blocksize;
* if (argc == 3) {
* // Short form prints CRCs of file for use in long form.
* used = (len + blocksize - 1) / blocksize;
- * crcs = malloc(used * sizeof(
uint32_t
));
+ * crcs = malloc(used * sizeof(
crcs[0]
));
* crc_of_blocks(file, len, blocksize, 32, crcs);
* for (i = 0; i < used; i++)
* crc_of_blocks(file, len, blocksize, 32, crcs);
* for (i = 0; i < used; i++)
- * printf("%
i ",
crcs[i]);
+ * printf("%
llu ", (long long)
crcs[i]);
* printf("\n");
* return 0;
* }
* printf("\n");
* return 0;
* }
@@
-56,7
+56,7
@@
* for (i = 0; i < argc-3; i++)
* crcs[i] = atoi(argv[3+i]);
*
* for (i = 0; i < argc-3; i++)
* crcs[i] = atoi(argv[3+i]);
*
- * ctx = crc_context_new(blocksize, 32, crcs, argc-3);
+ * ctx = crc_context_new(blocksize, 32, crcs, argc-3
, 0
);
* for (used = 0; used < len; ) {
* used += crc_read_block(ctx, &res, file+used, len-used);
* print_result(res);
* for (used = 0; used < len; ) {
* used += crc_read_block(ctx, &res, file+used, len-used);
* print_result(res);
@@
-67,8
+67,11
@@
* return 0;
* }
*
* return 0;
* }
*
- * Licen
ce: LGPL (v2
or any later version)
+ * Licen
se: LGPL (v2.1
or any later version)
* Author: Rusty Russell <rusty@rustcorp.com.au>
* Author: Rusty Russell <rusty@rustcorp.com.au>
+ * Ccanlint:
+ * // We actually depend on the GPL crc routines, so not really LGPL :(
+ * license_depends_compat FAIL
*/
int main(int argc, char *argv[])
{
*/
int main(int argc, char *argv[])
{