summaryrefslogtreecommitdiff
path: root/xs_curl.h
diff options
context:
space:
mode:
authorGravatar default2022-09-19 23:08:59 +0200
committerGravatar default2022-09-19 23:08:59 +0200
commite5167b7b497175261df09a53c58d90395d108eb2 (patch)
tree70c663ad5bc0646e0fffee7eeeb3ffe57afd11ac /xs_curl.h
parentRenamed user functions. (diff)
downloadpenes-snac2-e5167b7b497175261df09a53c58d90395d108eb2.tar.gz
penes-snac2-e5167b7b497175261df09a53c58d90395d108eb2.tar.xz
penes-snac2-e5167b7b497175261df09a53c58d90395d108eb2.zip
Renamed xs_splitn() to xs_split_n().
Diffstat (limited to 'xs_curl.h')
-rw-r--r--xs_curl.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/xs_curl.h b/xs_curl.h
index 01d9311..3c6e3c5 100644
--- a/xs_curl.h
+++ b/xs_curl.h
@@ -25,7 +25,7 @@ static size_t _header_callback(char *buffer, size_t size,
25 25
26 /* only the HTTP/x 200 line and the last one doesn't have ': ' */ 26 /* only the HTTP/x 200 line and the last one doesn't have ': ' */
27 if (xs_str_in(l, ": ") != -1) { 27 if (xs_str_in(l, ": ") != -1) {
28 xs *knv = xs_splitn(l, ": ", 1); 28 xs *knv = xs_split_n(l, ": ", 1);
29 29
30 headers = xs_dict_append(headers, xs_list_get(knv, 0), xs_list_get(knv, 1)); 30 headers = xs_dict_append(headers, xs_list_get(knv, 0), xs_list_get(knv, 1));
31 } 31 }