X-Git-Url: https://git.ozlabs.org/?p=ccan;a=blobdiff_plain;f=ccan%2Fasort%2F_info;h=c5b2a0bb23706f50b6646b8310ee21eeed4a8893;hp=3b71998aa0d00df2c09e126821b0d7377d744a65;hb=18636637ee013ef828cb04b2b7bb4a4922324475;hpb=009f261242b7e1f5482e097315c82a4185a708bf diff --git a/ccan/asort/_info b/ccan/asort/_info index 3b71998a..c5b2a0bb 100644 --- a/ccan/asort/_info +++ b/ccan/asort/_info @@ -12,18 +12,19 @@ * asort does both. * * Licence: LGPL + * Author: Rusty Russell * * Example: * #include * #include * #include * - * 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[])