about summary refs log tree commit diff homepage
path: root/merge.c
diff options
context:
space:
mode:
authorJune McEnroe <june@causal.agency>2019-01-04 11:01:49 -0500
committerJune McEnroe <june@causal.agency>2019-01-04 11:01:49 -0500
commit85ae39946323bee87595842deaf296b2ff457549 (patch)
treebffeb1ba6c27382bc4a20034b984cdea15d06399 /merge.c
parentCall cap_enter in client and server (diff)
downloadtorus-85ae39946323bee87595842deaf296b2ff457549.tar.gz
torus-85ae39946323bee87595842deaf296b2ff457549.zip
Restore old data format
Diffstat (limited to '')
-rw-r--r--merge.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/merge.c b/merge.c
index ce5dbef..66a7a5e 100644
--- a/merge.c
+++ b/merge.c
@@ -105,11 +105,14 @@ int main(int argc, char *argv[]) {
 		if (!countA && !countB) break;
 		if (!countA || !countB) errx(EX_DATAERR, "different size inputs");
 
-		const struct Tile *tileC = (tileA.meta.accessTime > tileB.meta.accessTime)
+		struct Meta metaA = tileMeta(&tileA);
+		struct Meta metaB = tileMeta(&tileB);
+
+		const struct Tile *tileC = (metaA.accessTime > metaB.accessTime)
 			? &tileA
 			: &tileB;
 
-		if (tileA.meta.modifyTime != tileB.meta.modifyTime) {
+		if (metaA.modifyTime != metaB.modifyTime) {
 			drawTile(0, &tileA);
 			drawTile(CellRows + 1, &tileB);
 			move(CellRows * 2 + 2, 0);