diff options
Diffstat (limited to 'tests/core/test_03.c')
-rw-r--r-- | tests/core/test_03.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/tests/core/test_03.c b/tests/core/test_03.c index af65ddd98d8c1..67d7be3dfce21 100644 --- a/tests/core/test_03.c +++ b/tests/core/test_03.c @@ -13,6 +13,7 @@ #include <string.h> #include "xo.h" +#include "xo_encoder.h" xo_info_t info[] = { { "employee", "object", "Employee data" }, @@ -44,10 +45,10 @@ main (int argc, char **argv) return 1; for (argc = 1; argv[argc]; argc++) { - if (strcmp(argv[argc], "count") == 0) { + if (xo_streq(argv[argc], "count")) { if (argv[argc + 1]) opt_count = atoi(argv[++argc]); - } else if (strcmp(argv[argc], "extra") == 0) { + } else if (xo_streq(argv[argc], "extra")) { if (argv[argc + 1]) opt_extra = atoi(argv[++argc]); } |