ref: b473117350fbb8c292231befcd8987d7eed042e6
parent: 75bb5100f6544967d9559d41befd52366dce4e0d
author: Sigrid Solveig Haflínudóttir <ftrvxmtrx@gmail.com>
date: Thu Nov 12 08:45:51 EST 2020
bikeshed
--- a/ext4srv.c
+++ b/ext4srv.c
@@ -194,9 +194,9 @@
static void
ropen(Req *r)
{
- Aux *a;
char *path;
int res;
+ Aux *a;
a = r->fid->aux;
switch(a->type){
@@ -349,8 +349,8 @@
static void
rread(Req *r)
{
- Aux *a;
ulong n;
+ Aux *a;
a = r->fid->aux;
if(a->type == Adir && a->dir != nil){
@@ -374,9 +374,9 @@
static void
rwrite(Req *r)
{
- Aux *a;
ulong n;
int res;
+ Aux *a;
a = r->fid->aux;
if(a->type == Adir){
@@ -450,8 +450,8 @@
static void
rstat(Req *r)
{
- Aux *a;
char err[ERRMAX];
+ Aux *a;
a = r->fid->aux;
if(dirfill(&r->d, a, nil) != 0){
--- a/part.c
+++ b/part.c
@@ -178,8 +178,8 @@
{
char *s, *d;
ext4_file f;
- uvlong n;
ulong got;
+ uvlong n;
int r;
d = nil;
@@ -221,9 +221,9 @@
static int
mountpart(Part *p, Opts *opts)
{
- int r;
- char *gr;
uvlong sz;
+ char *gr;
+ int r;
if(snprint(p->dev, sizeof(p->dev), "%Ð", p) >= sizeof(p->dev)){
werrstr("part path too long");
@@ -276,11 +276,11 @@
Part *
openpart(char *dev, Opts *opts)
{
- Dir *d;
+ u32int blksz;
Part *p;
char *s;
+ Dir *d;
int f;
- u32int blksz;
d = nil;
p = nil;