diff options
author | June McEnroe <june@causal.agency> | 2019-01-04 11:01:49 -0500 |
---|---|---|
committer | June McEnroe <june@causal.agency> | 2019-01-04 11:01:49 -0500 |
commit | 4a270f301bbf2cf07c340e895cb79c226b9fb7fb (patch) | |
tree | 41f192825f5a1e03549c62c22c289c5e4014a954 /merge.c | |
parent | Call cap_enter in client and server (diff) | |
download | torus-4a270f301bbf2cf07c340e895cb79c226b9fb7fb.tar.gz torus-4a270f301bbf2cf07c340e895cb79c226b9fb7fb.zip |
Restore old data format
Diffstat (limited to '')
-rw-r--r-- | merge.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/merge.c b/merge.c index 997f97f..0e45c84 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); |