diff options
| author | ame <[email protected]> | 2025-07-24 02:32:37 -0500 |
|---|---|---|
| committer | ame <[email protected]> | 2025-07-24 02:32:37 -0500 |
| commit | ed2dd6874a905769c5cfc080333ab0b12f9a9fe8 (patch) | |
| tree | 60e29dbb01635dc9a94e02709520baea1b63d5fe /src/thread.c | |
| parent | b392bec30ebdd4c84446623193b82531b8001b88 (diff) | |
errors and then,, yknow fix them
Diffstat (limited to 'src/thread.c')
| -rw-r--r-- | src/thread.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/thread.c b/src/thread.c index babab52..5aed694 100644 --- a/src/thread.c +++ b/src/thread.c @@ -51,7 +51,7 @@ int l_tlock(lua_State* L){ pthread_mutex_lock(&mutex);
pthread_mutex_t* mp = malloc(sizeof * mp);
*mp = mutex;
- int id = larray_set(&thread_locks, idx, (void*)mp);
+ larray_set(&thread_locks, idx, (void*)mp);
} else {
pthread_mutex_t *m = (pthread_mutex_t*)thread_locks->arr[i].value;
pthread_mutex_lock(&thread_priority_lock);
@@ -417,7 +417,7 @@ void meta_proxy_gen(lua_State* L, struct thread_buffer *buffer, int meta_idx, in lua_pushnil(L);
for(; lua_next(L, meta_idx) != 0;){
- int k, v = lua_gettop(L);
+ int k = lua_gettop(L);
k = lua_gettop(L) - 1;
char* fn = calloc(128, sizeof * fn);
|
