]> jfr.im git - solanum.git/blobdiff - librb/src/dictionary.c
cppcheck: fix various warnings/errors
[solanum.git] / librb / src / dictionary.c
index f72ceca96eb06e48a3f776afddcc6b0f28662e41..124edbbed50e2794b1431f6555cbdf2fabaf9311 100644 (file)
@@ -816,7 +816,7 @@ void rb_dictionary_stats(rb_dictionary *dict, void (*cb)(const char *line, void
        {
                maxdepth = 0;
                sum = stats_recurse(dict->root, 0, &maxdepth);
-               snprintf(str, sizeof str, "%-30s %-15s %-10d %-10d %-10d %-10d", dict->id, "DICT", dict->count, sum, sum / dict->count, maxdepth);
+               snprintf(str, sizeof str, "%-30s %-15s %-10u %-10d %-10d %-10d", dict->id, "DICT", dict->count, sum, sum / dict->count, maxdepth);
        }
        else
        {