shithub: gefs

Download patch

ref: 6ae4eceba4094a3a408f3c9d7959b4a0853b1c2d
parent: e5943318dd3d95f0a7dd03122cbb003ab59f9633
author: Ori Bernstein <ori@eigenstate.org>
date: Tue Feb 1 00:46:04 EST 2022

style: static up a few functions.

--- a/blk.c
+++ b/blk.c
@@ -916,7 +916,7 @@
 	chsend(a->sync, b);
 }
 
-void
+static void
 qput(Flushq *q, Blk *b)
 {
 	Blk *t;
@@ -936,7 +936,7 @@
 
 }
 
-Blk*
+static Blk*
 qpop(Flushq *q)
 {
 	int i, l, r, m;
--- a/load.c
+++ b/load.c
@@ -13,7 +13,7 @@
 	return ((Arange*)a)->off - ((Arange*)b)->off;
 }
 
-void
+static void
 mergeinfo(Gefs *fs, Fshdr *fi)
 {
 	if(fi->blksz != Blksz || fi->bufspc != Bufspc || fi->hdrsz != Hdrsz)
--- a/ream.c
+++ b/ream.c
@@ -16,7 +16,7 @@
 	Xdir d;
 
 	/* nb: values must be inserted in key order */
-	memset(&d, 0, sizeof(Dir));
+	memset(&d, 0, sizeof(Xdir));
 	d.qid = (Qid){fs->nextqid++, 0, QTDIR};
 	d.mode = DMDIR|0755;
 	d.atime = 0;