aboutsummaryrefslogtreecommitdiff
path: root/lib/update.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/update.c')
-rw-r--r--lib/update.c14
1 files changed, 6 insertions, 8 deletions
diff --git a/lib/update.c b/lib/update.c
index 88fd27b..dfed858 100644
--- a/lib/update.c
+++ b/lib/update.c
@@ -1,6 +1,6 @@
/* $Id$ */
/*
- * Copyright (c) 2004 demon <demon@vhost.dyndns.org>
+ * Copyright (c) 2004 Dimitri Sokolyuk <demon@vhost.dyndns.org>
*
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
@@ -146,16 +146,14 @@ unzip(void)
return;
}
-static const char twiddle_chars[] = "|/-\\";
-static int twiddle_index = 0;
-
void
twiddle(void)
{
- putchar(twiddle_chars[twiddle_index++]);
+ static const char tc[] = "|/-\\";
+ static int ti = 0;
+
+ putchar(tc[ti++]);
putchar('\b');
fflush(stdout);
- twiddle_index &= 3;
+ ti &= 3;
}
-
-