diff options
author | Tavian Barnes <tavianator@gmail.com> | 2010-05-05 20:09:38 -0600 |
---|---|---|
committer | Tavian Barnes <tavianator@gmail.com> | 2010-05-05 22:47:44 -0600 |
commit | 6c2943e735c99579b5b861f67f2d98e5ddd6306f (patch) | |
tree | e882a1dda2726dd9dfca3fe2dd44750b17b1edda /dimension/progressbar.c | |
parent | b14506e501770aeaf54d1160c0073398cc29a038 (diff) | |
download | dimension-6c2943e735c99579b5b861f67f2d98e5ddd6306f.tar.xz |
Use C99 for loop initializers.
Diffstat (limited to 'dimension/progressbar.c')
-rw-r--r-- | dimension/progressbar.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/dimension/progressbar.c b/dimension/progressbar.c index 6abcbd6..a8bf11c 100644 --- a/dimension/progressbar.c +++ b/dimension/progressbar.c @@ -45,8 +45,8 @@ dmnsn_progressbar(const char *format, const dmnsn_progress *progress, ...) width = ws.ws_col; } - unsigned int i, increments = width - (len % width); - for (i = 0; i < increments; ++i) { + unsigned int increments = width - (len % width); + for (unsigned int i = 0; i < increments; ++i) { dmnsn_wait_progress(progress, ((double)(i + 1))/increments); printf("."); |