fix compiler error about json

This commit is contained in:
MaYuming
2017-06-25 16:58:50 +08:00
parent 592b769f67
commit a40507b8b2
+2 -2
View File
@@ -2270,7 +2270,7 @@ void automataUnitTest() {
* @brief Produce port based pbf filter for port array
* and saves it in .json format
*/
#ifdef HAVE_JSON_C
void bpf_filter_produce_filter(int port_array[], int size, char *filePath){
char *prefix = "bpf_filter_";
char _filterFilePath[1024];
@@ -2319,7 +2319,7 @@ void bpf_filter_produce_filter(int port_array[], int size, char *filePath){
printf("created: %s\n", _filterFilePath);
}
#endif
/* *********************************************** */
/**
* @brief Initialize port array