wm: glendy

Download patch

ref: 09a8d8c1dddb130846b931acbe22ffe036882359
parent: cd0a928d7782f41736f5d1cd2dafdf950da5b6b4
author: mkf <mkf@cloud9p.org>
date: Thu Dec 12 06:05:08 EST 2024

srv4: fix some warnnings

--- a/srv4.c
+++ b/srv4.c
@@ -53,7 +53,6 @@
 static void
 printclients(char *fmt, ...)
 {
-	int i;
 	/* it seems arg gets changed during the first call to vprint, thus we need two */
 	va_list arg, arg2;
 	
@@ -273,8 +272,7 @@
 int
 proc(int player, char *s)
 {
-	char *t;
-	int oturn, n;
+	int oturn;
 
 	/* early return paths */
 	if(*s == '\0' || *s == 'q')
@@ -426,7 +424,7 @@
 {
 	int clientfd[2], res[2];
 	socklen_t clilen;
-	struct sockaddr_in servaddr, clientaddr;
+	struct sockaddr_in clientaddr;
 	int tdata[2][2];
 
 	while(gcount < 32)