]> git.lizzy.rs Git - dragonnet.git/blobdiff - listen.h
Correct mutex allocation
[dragonnet.git] / listen.h
index f2e30b671a1bff0de3b5fd3d587158c7c47ed571..e1d96a359afa0472f9d0ab4a0f750659330ec342 100644 (file)
--- a/listen.h
+++ b/listen.h
@@ -17,7 +17,7 @@ typedef struct {
        void (*on_connect)(DragonnetPeer *p);
        DragonnetListenerState state;
 
-       pthread_rwlock_t *mu;
+       pthread_rwlock_t mu;
 } DragonnetListener;
 
 DragonnetListener *dragonnet_listener_new(char *addr,