diff options
author | bpc2003 <wpesfriendnva@gmail.com> | 2025-05-21 11:07:50 -0400 |
---|---|---|
committer | bpc2003 <wpesfriendnva@gmail.com> | 2025-05-21 11:07:50 -0400 |
commit | a08b44e1c6fbd8b56011a969f8c11bcc630e1ee0 (patch) | |
tree | 5a4337c8993f1bee673d4de819a5b64fe0aa1f95 /src/test.c | |
parent | 3c07894d658c3fa75f1cd1fd524e7464d9d95f1d (diff) |
Decrease visibilty in encode and decode functions
Diffstat (limited to 'src/test.c')
-rw-r--r-- | src/test.c | 7 |
1 files changed, 3 insertions, 4 deletions
@@ -215,7 +215,7 @@ void test_encode(void) { .size = sizeof(map_t), .n = 1}}; - char *xml = encode(map, 1); + char *xml = encode(map); if (xml == NULL) { fprintf(stderr, "test_encode: failed\n"); return; @@ -228,9 +228,8 @@ void test_encode(void) { void test_decode(void) { char *xml = "<set id='0' " "test='true'><key1>value1</key1><key2>value2</key2></set>"; - int len = 0, start = 0; - map_t *map = decode(xml, &start, &len); - printf("%s\n", (xml = encode(map, 1))); + map_t *map = decode(xml); + printf("%s\n", (xml = encode(map))); free(xml); freemap(map); } |