diff options
author | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2016-04-17 18:48:38 +0200 |
---|---|---|
committer | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2016-04-17 18:48:38 +0200 |
commit | bfc8f3afc0ba4737f0c9f515400c04e0e624234e (patch) | |
tree | 90e6ce82b9f4087e618cdb6273568c1bfe5e9a65 /kern | |
parent | 441b471a09776dece8bffe2d0d633482bf66aab0 (diff) | |
download | gnumach-bfc8f3afc0ba4737f0c9f515400c04e0e624234e.tar.gz gnumach-bfc8f3afc0ba4737f0c9f515400c04e0e624234e.tar.bz2 gnumach-bfc8f3afc0ba4737f0c9f515400c04e0e624234e.zip |
Avoid using C99 for variable declaration for now
* kern/gsync.c (gsync_setup): Declare `i' variable out of for loop.
Diffstat (limited to 'kern')
-rw-r--r-- | kern/gsync.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/kern/gsync.c b/kern/gsync.c index 227df31a..68b3d0b0 100644 --- a/kern/gsync.c +++ b/kern/gsync.c @@ -52,7 +52,8 @@ static struct gsync_hbucket gsync_buckets[GSYNC_NBUCKETS]; void gsync_setup (void) { - for (int i = 0; i < GSYNC_NBUCKETS; ++i) + int i; + for (i = 0; i < GSYNC_NBUCKETS; ++i) { list_init (&gsync_buckets[i].entries); simple_lock_init (&gsync_buckets[i].lock); |