shithub: riscv

Download patch

ref: a3f2d6d23ed1be69fee607bdedadc0438fd01305
parent: 6a714c488e82d70ed612d05202998fa5eb547859
author: Sigrid Solveig Haflínudóttir <[email protected]>
date: Sun Apr 7 18:00:41 EDT 2024

tapefs: fix two warnings

--- a/sys/src/cmd/tapefs/cpiofs.c
+++ b/sys/src/cmd/tapefs/cpiofs.c
@@ -42,7 +42,9 @@
 {
 	ushort x;
 
-	return x = egetc(), x |= egetc()<<8;
+	x = egetc();
+	x |= egetc()<<8;
+	return x;
 }
 
 static ulong
@@ -50,7 +52,11 @@
 {
 	ulong x;
 
-	return x = egetc()<<16, x |= egetc()<<24, x |= egetc(), x |= egetc()<<8;
+	x = egetc()<<16;
+	x |= egetc()<<24;
+	x |= egetc();
+	x |= egetc()<<8;
+	return x;
 }
 
 /* sysvr3 and sysvr4 skip records with names longer than 256. pwb 1.0,