aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDimitri Sokolyuk <demon@dim13.org>2006-03-10 17:24:07 +0000
committerDimitri Sokolyuk <demon@dim13.org>2006-03-10 17:24:07 +0000
commit844a38be42b30052549c4a2c6a98a5b4fe50fa0e (patch)
treeeff94bf2dfb2d41075f996c59f0db3c4e93fe009
parentdcd43f2632cf1206a704fc5afa1963b62c9fff5d (diff)
update twiddle
-rw-r--r--lib/update.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/lib/update.c b/lib/update.c
index b41f2a7..cca80db 100644
--- a/lib/update.c
+++ b/lib/update.c
@@ -149,11 +149,8 @@ unzip(void)
void
twiddle(void)
{
- static const char tc[] = "|/-\\";
- static int ti = 0;
+ static int pos;
- putchar(tc[ti++]);
+ putchar("|/-\\"[pos++ & 3]);
putchar('\b');
- fflush(stdout);
- ti &= 3;
}