shithub: ext4srv

Download patch

ref: 053f9415a345a438773817534e80704a6b372355
parent: 29bcc5022fe5852d7e5888d35c27f71c4ef50615
author: Sigrid Solveig Haflínudóttir <ftrvxmtrx@gmail.com>
date: Sun Nov 15 12:26:54 EST 2020

use usize

--- a/ext4srv.c
+++ b/ext4srv.c
@@ -44,7 +44,7 @@
 linkresolve(Aux *a, char *s, char **value)
 {
 	char *q, buf[4096+1];
-	uvlong sz;
+	usize sz;
 	int res;
 
 	res = 0;
@@ -476,7 +476,7 @@
 static void
 rread(Req *r)
 {
-	uvlong n;
+	usize n;
 	int res;
 	Aux *a;
 
@@ -500,7 +500,7 @@
 static void
 rwrite(Req *r)
 {
-	uvlong n;
+	usize n;
 	int res;
 	Aux *a;
 
--- a/part.c
+++ b/part.c
@@ -174,9 +174,9 @@
 }
 
 static void *
-readfile(Part *p, char *path, uvlong *sz)
+readfile(Part *p, char *path, usize *sz)
 {
-	uvlong n, got;
+	usize n, got;
 	char *s, *d;
 	ext4_file f;
 	int r;
@@ -220,7 +220,7 @@
 static int
 mountpart(Part *p, Opts *opts)
 {
-	uvlong sz;
+	usize sz;
 	char *gr;
 	int r;