aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2019-05-25 23:42:40 +0200
committerdec05eba <dec05eba@protonmail.com>2020-07-06 06:55:04 +0200
commit5f968f9b788ff997c21d5463394db2a975d55ed2 (patch)
treeaebf1728893b9497a1b172cedce6a12106b202a1 /tests
parente7365234460fc9fb949a6a9745b7041b04b6a6a4 (diff)
Fix tests etc
Diffstat (limited to 'tests')
-rw-r--r--tests/main.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/main.c b/tests/main.c
index 4d16ad6..7888ea1 100644
--- a/tests/main.c
+++ b/tests/main.c
@@ -20,8 +20,8 @@ static char* get_file_content(const char *filepath) {
static void result_callback(QuickMediaHtmlNode *node, void *userdata) {
const char *href = quickmedia_html_node_get_attribute_value(node, "href");
- QuickMediaStringView text = quickmedia_html_node_get_text(node);
- printf("a href: %s, node value: %.*s\n", href, text.size, text.data);
+ const char *text = quickmedia_html_node_get_text(node);
+ printf("a href: %s, node value: %s\n", href, text);
}
int main(int argc, char **argv) {