summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀ <erik@darapsa.co.id>2023-01-12 17:35:16 +0800
committerꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀ <erik@darapsa.co.id>2023-01-12 17:35:16 +0800
commit5f242cff9c418526cf88427afd6a74f56751f9b6 (patch)
tree4ded273fac136604b0d18ed97fb8ae739409a354
parent3678251af38f04882f55515036b8fbbe27760a40 (diff)
thrd_t typedef isn't needed anymore
-rw-r--r--request.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/request.c b/request.c
index 624f0e4..c969eeb 100644
--- a/request.c
+++ b/request.c
@@ -14,7 +14,6 @@ extern emscripten_fetch_attr_t attr;
#else
#include <pthread.h>
-typedef pthread_t thrd_t;
#include <curl/curl.h>
extern char *sampleurl;
@@ -180,7 +179,7 @@ void request(void (*handler)(interchange_response *), void (*callback)(void *),
container->post = post;
container->handler = handler;
container->response = response;
- thrd_t thread;
+ pthread_t thread;
pthread_create(&thread, NULL, async, container);
#endif
}