shithub: 9pro

Download patch

ref: 9f47a9311dbeb018d58bae4c607f3aa2ca9e8c9b
parent: 09f049c41ff2471fec4ec66197c1f765bd1a6823
author: Sigrid Solveig Haflínudóttir <[email protected]>
date: Fri Apr 30 10:30:37 EDT 2021

9pex: remove unused var

--- a/9pex.c
+++ b/9pex.c
@@ -132,7 +132,7 @@
 {
 	struct timeval t;
 	fd_set r, w, e;
-	int n, fl;
+	int fl;
 
 	FD_ZERO(&r);
 	FD_SET(in, &r);
@@ -146,7 +146,7 @@
 	t.tv_usec = 1000;
 	for (;;) {
 		errno = 0;
-		if ((n = select(max(in, out) + 1, &r, &w, &e, block ? NULL : &t)) < 0 || FD_ISSET(in, &e) || FD_ISSET(out, &e)) {
+		if (select(max(in, out) + 1, &r, &w, &e, block ? NULL : &t) < 0 || FD_ISSET(in, &e) || FD_ISSET(out, &e)) {
 			if (errno == EINTR)
 				continue;
 			return -1;