wm: glendy

Download patch

ref: 303984cda676adbc7b8ed7240c96b845fa6a2ef4
parent: bfb0b73973064f192d97eb56fb56b1737a9c981f
author: mkf <mkf@cloud9p.org>
date: Wed Jun 5 16:44:27 EDT 2024

ensure head get's cast

--- a/srv5.c
+++ b/srv5.c
@@ -347,7 +347,7 @@
 		n++;
 	}
 	if(!strcmp(s, ""))
-		dprint("input(%d, %d): got input: %x, %s\n", gid, player, *s, s);
+		dprint("input(%d, %d): got input: 0x%x, %s\n", gid, player, *s, s);
 
 	return s;
 }
@@ -603,8 +603,7 @@
 	if(clients.l == nil)
 		clients.l = llnew();
 
-
-	head = clients.l->data;
+	head = (Client*)clients.l->data;
 	if(head == nil || c->side == head->side)
 	{
 		if(c->side == PRandom)
@@ -669,7 +668,7 @@
 	cl = newclient(s, fd);
 	
 	if(cl != nil)
-		makematch(cl);
+		makematch(cl);/
 	die:
 		free(s);
 }