X-Git-Url: https://jfr.im/git/irc/evilnet/x3.git/blobdiff_plain/d0f04f713ca0b689f745842fcc9e61d24610f11a..ec8177c5c7b355a953871d6fded9ae77cf2a4a96:/src/dict-splay.c diff --git a/src/dict-splay.c b/src/dict-splay.c index 439fd31..2e6f3a1 100644 --- a/src/dict-splay.c +++ b/src/dict-splay.c @@ -5,7 +5,7 @@ * * x3 is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by - * the Free Software Foundation; either version 2 of the License, or + * the Free Software Foundation; either version 3 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, @@ -304,20 +304,20 @@ dict_sanity_check_node(struct dict_node *node, struct dict_sanity_struct *dss) { verify(node); if (!node->key) { - snprintf(dss->error, sizeof(dss->error), "Node %p had null key", node); + snprintf(dss->error, sizeof(dss->error), "Node %p had null key", (void*)node); return 1; } if (node->l) { if (dict_sanity_check_node(node->l, dss)) return 1; if (irccasecmp(node->l->key, node->key) >= 0) { - snprintf(dss->error, sizeof(dss->error), "Node %p's left child's key '%s' >= its key '%s'", node, node->l->key, node->key); + snprintf(dss->error, sizeof(dss->error), "Node %p's left child's key '%s' >= its key '%s'", (void*)node, node->l->key, node->key); return 1; } } if (node->r) { if (dict_sanity_check_node(node->r, dss)) return 1; if (irccasecmp(node->key, node->r->key) >= 0) { - snprintf(dss->error, sizeof(dss->error), "Node %p's right child's key '%s' <= its key '%s'", node, node->r->key, node->key); + snprintf(dss->error, sizeof(dss->error), "Node %p's right child's key '%s' <= its key '%s'", (void*)node, node->r->key, node->key); return 1; } }