modules: update documentation examples so they compile under ccanlint.
[ccan] / ccan / asort / _info
index e848ff1a974d73660200694cf33279448270a490..c5b2a0bb23706f50b6646b8310ee21eeed4a8893 100644 (file)
  *     #include <stdio.h>
  *     #include <string.h>
  *     
- *     static int cmp(const char **a, const char **n, bool *casefold)
+ *     static int cmp(char *const *a, char *const *n, bool *casefold)
  *     {
  *             if (*casefold)
- *                     return strcasecmp(*a, *b);
+ *                     return strcasecmp(*a, *n);
  *             else
- *                     return strcmp(*a, *b);
+ *                     return strcmp(*a, *n);
  *     }
  *     
  *     int main(int argc, char *argv[])