diff options
author | ꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀ <erik@darapsa.co.id> | 2021-06-14 16:36:28 +0800 |
---|---|---|
committer | ꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀ <erik@darapsa.co.id> | 2021-06-14 16:36:28 +0800 |
commit | 0dc0263dbddd8ec876a9b4e6beecfdf98eadeb94 (patch) | |
tree | 2d1052e38380688499ff30ba70c6189dc1ee4e44 /request.h | |
parent | 30b0559e9e434ff2dafe7946e70161bbacf2ab02 (diff) |
Change some functions to static
Diffstat (limited to 'request.h')
-rw-r--r-- | request.h | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -29,7 +29,7 @@ extern char *sampleurl; size_t append(char *, size_t, size_t, icclient_fetch_t *); #endif -inline void init(const char *certificate) +static inline void init(const char *certificate) { #ifdef __EMSCRIPTEN__ emscripten_fetch_attr_init(&attr); @@ -47,7 +47,7 @@ inline void init(const char *certificate) #endif } -inline void request(void (*handler)(icclient_fetch_t *), void *callback, struct body *body, char *fmt, ...) +static inline void request(void (*handler)(icclient_fetch_t *), void *callback, struct body *body, char *fmt, ...) { va_list ap; char *p, *sval; @@ -150,7 +150,7 @@ inline void request(void (*handler)(icclient_fetch_t *), void *callback, struct } #ifndef __EMSCRIPTEN__ -inline void cleanup() +static inline void cleanup() { free(sampleurl); curl_easy_cleanup(curl); |