From 0dc0263dbddd8ec876a9b4e6beecfdf98eadeb94 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EA=A6=8C=EA=A6=AB=EA=A6=B6=EA=A6=8F=EA=A7=80=EA=A6=A6?= =?UTF-8?q?=EA=A6=BF=EA=A6=A7=EA=A6=AE=EA=A6=91=EA=A6=A9=EA=A6=AD=EA=A7=80?= Date: Mon, 14 Jun 2021 16:36:28 +0800 Subject: Change some functions to static --- request.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'request.h') diff --git a/request.h b/request.h index 536db0f..756edd7 100644 --- a/request.h +++ b/request.h @@ -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); -- cgit v1.2.3