X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=format_check.c;h=5580d9173039bbcfd4e4aa3eb923da8cce9ad37a;hb=6e169254d1b4dd25d46351c8c1867f5bb79dd069;hp=6fec9b7c8843c4806f1024b4d35dd1a8951b2713;hpb=c3d6ac6474ad05adfeaed04227e5956fb492688a;p=cparser diff --git a/format_check.c b/format_check.c index 6fec9b7..5580d91 100644 --- a/format_check.c +++ b/format_check.c @@ -21,6 +21,7 @@ #include +#include "adt/strutil.h" #include "adt/util.h" #include "format_check.h" #include "symbol_t.h" @@ -1003,7 +1004,7 @@ void check_format(const call_expression_t *const call) */ const char *const name = entity->base.symbol->string; for (size_t i = 0; i < lengthof(builtin_table); ++i) { - if (strcmp(name, builtin_table[i].name) == 0) { + if (streq(name, builtin_table[i].name)) { switch (builtin_table[i].fmt_kind) { case FORMAT_PRINTF: check_printf_format(arg, &builtin_table[i]);