shithub: riscv

Download patch

ref: a8bf0b365d4313847b4fc4b94383a996bc297d93
parent: 316230f6258b96331039f5cc1b72307e4ce5827b
author: Jacob Moody <moody@posixcafe.org>
date: Thu May 19 21:13:34 EDT 2022

aux/listen: remove unused cpu global

--- a/sys/src/cmd/aux/listen.c
+++ b/sys/src/cmd/aux/listen.c
@@ -38,7 +38,6 @@
 long	maxprocs;
 int	quiet;
 int	immutable;
-char	*cpu;
 char	*proto;
 char	*addr;
 Announce *announcements;
@@ -69,9 +68,6 @@
 	immutable = 0;
 	argv0 = argv[0];
 	maxprocs = 0;
-	cpu = getenv("cputype");
-	if(cpu == 0)
-		error("can't get cputype");
 
 	ARGBEGIN{
 	case 'a':