Print a message when there is no support for some parser.
Remove those EOPNOTSUPPs because they are unused.
Signed-off-by: Arturo Borrero Gonzalez <arturo.borrero.glez@gmail.com>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
json_decref(root);
return -1;
#else
- errno = EOPNOTSUPP;
+ printf("Compiled without support for JSON.\n");
return -1;
#endif
}
printf("\033[31mFAILED\e[0m (%s)\n", strerror(errno));
return -1;
#else
- errno = EOPNOTSUPP;
+ printf("Compiled without support for XML.\n");
return -1;
#endif
}