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 | e81cee1da82bd8d6bffd91ec67d0b3e957d89574 (patch) | |
tree | 838b8a75dbb3fe3d0d15d6fbad9d44247f711c83 /meta.c | |
parent | Fix ncurses color pair numbering (diff) | |
download | torus-e81cee1da82bd8d6bffd91ec67d0b3e957d89574.tar.gz torus-e81cee1da82bd8d6bffd91ec67d0b3e957d89574.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 ede1041..2ab906f 100644 --- a/meta.c +++ b/meta.c @@ -1,4 +1,4 @@ -/* Copyright (c) 2017, June McEnroe <june@causal.agency> +/* Copyright (C) 2017 June 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 + ); + } } |