dev9ghzdrk: pthread_create returns status, not thread handle

This commit is contained in:
Jannik Vogel authored and lightningterror committed 2019-03-11 00:52:05 +01:00
1 parent 7354c1fa0d
commit 7982e3abfe
1 file changed
+1 -1
+1 -1
View File
@@ -55,7 +55,7 @@ void InitNet(NetAdapter* ad)
int max_prio_for_policy = 0;
rx_thread = pthread_create(&rx_thread, NULL, NetRxThread, NULL);
int ret = pthread_create(&rx_thread, NULL, NetRxThread, NULL);
pthread_attr_init(&thAttr);
pthread_attr_getschedpolicy(&thAttr, &policy);
max_prio_for_policy = sched_get_priority_max(policy);