modules: update documentation examples so they compile under ccanlint.
[ccan] / ccan / crc / _info
index c505a2b63987f1643c3fd7c5cb3b95a8ff949d14..7812f212d445a1683dd042c632091209d64f3682 100644 (file)
@@ -11,7 +11,7 @@
  * detect a single error burst of up to 32 bits.
  *
  * Example:
- *     #include <ccan/crc.h>
+ *     #include <ccan/crc/crc.h>
  *     #include <stdio.h>
  *     #include <stdlib.h>
  *
@@ -22,7 +22,7 @@
  *                             "Prints 32 bit CRC of the string\n", argv[0]);
  *                     exit(1);
  *             }
- *             printf("0x%08x\n", crc32c(argv[1], strlen(argv[1])));
+ *             printf("0x%08x\n", crc32c(0, argv[1], strlen(argv[1])));
  *             exit(0);
  *     }
  *