wm: glendy

Download patch

ref: 40eb9a51aa950d91036d7df11f1586505e344eb3
parent: a172d158be86ea0c463f2bebf72713a64f142423
author: mkf <mkf@cloud9p.org>
date: Sat Apr 20 16:31:54 EDT 2024

srv: fix build, remove unused enum

--- a/srv.c
+++ b/srv.c
@@ -34,26 +34,6 @@
  * it might feel odd why it starts from 10,
  * becase then we can just read two bytes to see what's wrong.
  */
-enum
-{
-	GLNDY_CONN = 10,
-	GLNDY_INIT = 11,
-	GLNDY_SYNC,
-	GLNDY_OK,
-	GLNDY_WAIT,
-	
-	GLNDY_TURN,
-	GLNDY_NOTTURN,
-	
-	GLNDY_CANTM,
-	GLNDY_CANTP,
-	GLNDY_INVALIDINPUT,
-	GLNDY_WALL,
-	
-	GLNDY_GWON,
-	GLNDY_GLOST,
-};
-
 static void
 error(const char *msg)
 {
@@ -281,7 +261,7 @@
 	if(r == Wall)
 		print(playersock, "WALL %d %d\n", x, y);
 	else if(r == Glenda)
-		print(playersock, "GLND %d %d\n", x y);
+		print(playersock, "GLND %d %d\n", x, y);
 	else
 	{
 		strncpy(syncmsg, s, 8);
@@ -463,7 +443,7 @@
 		;
 	
 	close(listenfd);
-/	pthread_mutex_destroy(&pcount_mutex);
+//	pthread_mutex_destroy(&pcount_mutex);
 //	pthread_mutex_destroy(&print_mutex);
 	return 0;
 }