wm: glendy

Download patch

ref: 3eb06e8c2397928e76ee4880e83a7076c21c83f8
parent: 43b22e2357cddecfdbdc1106247ff98dba681d38
author: mkf <mkf@pi>
date: Wed Apr 24 17:43:44 EDT 2024

srv: remove misleading comments

--- a/srv.c
+++ b/srv.c
@@ -30,10 +30,6 @@
 pthread_mutex_t pcount_mutex;
 // pthread_mutex_t print_mutex;
 
-/*
- * it might feel odd why it starts from 10,
- * becase then we can just read two bytes to see what's wrong.
- */
 static void
 error(const char *msg)
 {
@@ -380,8 +376,6 @@
 	s = malloc(1024);
 
 	print(playersock, "TURN\n");
-
-//	while((c = read(playersock, s + n++, 1)) != '\n' && c != '\0' && n < 1023)
 	
 	memset(s, 0, 1024);
 	while(read(playersock, s+n, 1) == 1 && n < 1024)