summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--login.h2
-rw-r--r--request.h6
2 files changed, 4 insertions, 4 deletions
diff --git a/login.h b/login.h
index 9ef34f2..e49643d 100644
--- a/login.h
+++ b/login.h
@@ -3,7 +3,7 @@
#include "request.h"
-inline void login(const char *username, const char *password, const char *verify, const char *click,
+static inline void login(const char *username, const char *password, const char *verify, const char *click,
const char *successpage, const char *nextpage, const char *failpage, void (*handler)(icclient_fetch_t *), void *user)
{
request(handler, user, &(struct body){ 7, {
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);