cat: remove stupid long cast

cinap_lenrek 2021-08-04 17:21:54 +00:00
parent 7f832df53d
commit 8820b3d9ea
1 changed files with 1 additions and 1 deletions

View File

@ -7,7 +7,7 @@ cat(int f, char *s)
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)