shithub: plan9front

Download patch

ref: 8820b3d9ea682635f35d5775bfa68831a5ad30ed
parent: 7f832df53d2a1d45fb7c7b2129e56b6b9e855682
author: cinap_lenrek <cinap_lenrek@felloff.net>
date: Wed Aug 4 13:21:54 EDT 2021

cat: remove stupid long cast

--- a/sys/src/cmd/cat.c	Mon Aug  2 22:10:10 2021
+++ b/sys/src/cmd/cat.c	Wed Aug  4 13:21:54 2021
@@ -7,7 +7,7 @@
 	char buf[8192];
 	long n;
 
-	while((n=read(f, buf, (long)sizeof buf))>0)
+	while((n=read(f, buf, sizeof buf))>0)
 		if(write(1, buf, n)!=n)
 			sysfatal("write error copying %s: %r", s);
 	if(n < 0)