diff options
Diffstat (limited to 'examples/nft-table-json-add.c')
-rw-r--r-- | examples/nft-table-json-add.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/nft-table-json-add.c b/examples/nft-table-json-add.c index 5526c91..6b16c7f 100644 --- a/examples/nft-table-json-add.c +++ b/examples/nft-table-json-add.c @@ -64,12 +64,12 @@ int main(int argc, char *argv[]) exit(EXIT_FAILURE); } - if (nft_table_parse(t, NFT_TABLE_PARSE_JSON, json) < 0) { + if (nft_table_parse(t, NFT_PARSE_JSON, json) < 0) { printf("E: Unable to parse JSON file: %s\n", strerror(errno)); exit(EXIT_FAILURE); } - nft_table_snprintf(reprint, sizeof(reprint), t, NFT_TABLE_O_JSON, 0); + nft_table_snprintf(reprint, sizeof(reprint), t, NFT_OUTPUT_JSON, 0); printf("Parsed:\n%s\n", reprint); family = nft_table_attr_get_u32(t, NFT_TABLE_ATTR_FAMILY); |