shithub: 9pro

Download patch

ref: 09f049c41ff2471fec4ec66197c1f765bd1a6823
parent: ab5c0717baeddf5218a602508c9c72d67de797f5
author: Sigrid Solveig Haflínudóttir <ftrvxmtrx@gmail.com>
date: Fri Apr 30 10:28:59 EDT 2021

9gc: remove useless assignment

--- a/9gc.c
+++ b/9gc.c
@@ -356,7 +356,7 @@
 	t.tv_sec = 10;
 	for (;;) {
 		errno = 0;
-		if ((n = select(a->f + 1, &r, NULL, &e, &t)) < 0 || FD_ISSET(a->f, &e) || FD_ISSET(0, &e)) {
+		if (select(a->f + 1, &r, NULL, &e, &t) < 0 || FD_ISSET(a->f, &e) || FD_ISSET(0, &e)) {
 			if (errno == EINTR)
 				continue;
 			return -1;