diff options
author | June McEnroe <june@causal.agency> | 2018-07-17 15:44:35 -0400 |
---|---|---|
committer | June McEnroe <june@causal.agency> | 2018-07-17 15:44:35 -0400 |
commit | eb420c49bb731a48fc5183e12e62156cebc24ed3 (patch) | |
tree | 24529444e100e5f3cc3a1cc576510e39510ef534 /meta.c | |
parent | Fix ncurses color pair numbering (diff) | |
download | torus-eb420c49bb731a48fc5183e12e62156cebc24ed3.tar.gz torus-eb420c49bb731a48fc5183e12e62156cebc24ed3.zip |
Tabify source
And other style changes.
Diffstat (limited to '')
-rw-r--r-- | meta.c | 36 |
1 files changed, 18 insertions, 18 deletions
diff --git a/meta.c b/meta.c index 3f4dcc8..ce71e82 100644 --- a/meta.c +++ b/meta.c @@ -1,4 +1,4 @@ -/* Copyright (c) 2017, Curtis McEnroe <curtis@cmcenroe.me> +/* Copyright (C) 2017 Curtis McEnroe <june@causal.agency> * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as published by @@ -21,22 +21,22 @@ #include "torus.h" int main() { - printf("tileX,tileY,createTime,modifyCount,modifyTime,accessCount,accessTime\n"); - for (int i = 0;; ++i) { - struct Tile tile; - size_t count = fread(&tile, sizeof(tile), 1, stdin); - if (ferror(stdin)) err(EX_IOERR, "(stdin)"); - if (!count) return EX_OK; + printf("tileX,tileY,createTime,modifyCount,modifyTime,accessCount,accessTime\n"); + for (int i = 0;; ++i) { + struct Tile tile; + size_t count = fread(&tile, sizeof(tile), 1, stdin); + if (ferror(stdin)) err(EX_IOERR, "(stdin)"); + if (!count) return EX_OK; - printf( - "%d,%d,%ld,%u,%ld,%u,%ld\n", - i % TILE_COLS, - i / TILE_COLS, - tile.createTime, - tile.modifyCount, - tile.modifyTime, - tile.accessCount, - tile.accessTime - ); - } + printf( + "%d,%d,%ld,%u,%ld,%u,%ld\n", + i % TILE_COLS, + i / TILE_COLS, + tile.createTime, + tile.modifyCount, + tile.modifyTime, + tile.accessCount, + tile.accessTime + ); + } } |