X-Git-Url: https://git.ozlabs.org/?p=ccan;a=blobdiff_plain;f=ccan%2Fcrc%2F_info.c;h=c3f0b7635e221b6007f42274995dd3db7e9b2abb;hp=d14d1a50d3642cddb3e3842326ab0a6e9cc50288;hb=5b9275d0ffb22530a6942c068bef9ba90d41b8f4;hpb=96b6d6f132aeec31adc0dfd0836f67e052694ac7 diff --git a/ccan/crc/_info.c b/ccan/crc/_info.c index d14d1a50..c3f0b763 100644 --- a/ccan/crc/_info.c +++ b/ccan/crc/_info.c @@ -3,8 +3,8 @@ /** * crc - routines for crc of bytes * - * Cyclic Redundancy Check routines. They are reasonably fasts - * checksum routine, but not suitable for cryptographic use. + * Cyclic Redundancy Check routines. These are reasonably fast + * checksum routines, but not suitable for cryptographic use. * * They are useful for simple error detection, eg. a 32-bit CRC will * detect a single error burst of up to 32 bits. @@ -21,12 +21,12 @@ * "Prints 32 bit CRC of the string\n", argv[0]); * exit(1); * } - * printf("0x%08x\n", crc32(argv[1], strlen(argv[1]))); + * printf("0x%08x\n", crc32c(argv[1], strlen(argv[1]))); * exit(0); * } * - * Licence: Public Domain - * Author: Gary S. Brown + * Licence: GPL (v2 or any later version) + * Author: Gary S. Brown, Clay Haapala * Maintainer: Rusty Russell */ int main(int argc, char *argv[])