diff options
author | Cyrill Gorcunov <gorcunov@gmail.com> | 2009-12-21 19:31:45 +0300 |
---|---|---|
committer | Cyrill Gorcunov <gorcunov@gmail.com> | 2009-12-22 23:41:59 +0300 |
commit | f064c1cb02b06a8981121f9e44c31bd6878bbbe1 (patch) | |
tree | 9ee5cd5ea2d1549aeafe23ef5bd95b76b7920b00 /sync.c | |
parent | 725ad3f80bfd782166742b541b5af85227cf7acf (diff) | |
download | nasm-f064c1cb02b06a8981121f9e44c31bd6878bbbe1.tar.gz |
sync.c: Style nitfix
Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
Diffstat (limited to 'sync.c')
-rw-r--r-- | sync.c | 11 |
1 files changed, 6 insertions, 5 deletions
@@ -1,5 +1,5 @@ /* ----------------------------------------------------------------------- * - * + * * Copyright 1996-2009 The NASM Authors - All Rights Reserved * See the file AUTHORS included with the NASM distribution for * the specific copyright holders. @@ -14,7 +14,7 @@ * copyright notice, this list of conditions and the following * disclaimer in the documentation and/or other materials provided * with the distribution. - * + * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND * CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, * INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF @@ -56,6 +56,7 @@ static struct Sync { uint32_t pos; uint32_t length; } *synx; + static int max_synx, nsynx; static inline void swap_sync(uint32_t dst, uint32_t src) @@ -67,7 +68,7 @@ static inline void swap_sync(uint32_t dst, uint32_t src) void init_sync(void) { - max_synx = SYNC_MAX-1; + max_synx = SYNC_MAX - 1; synx = nasm_malloc(SYNC_MAX * sizeof(*synx)); nsynx = 0; } @@ -77,8 +78,8 @@ void add_sync(uint32_t pos, uint32_t length) int i; if (nsynx >= max_synx) { - max_synx = (max_synx << 1)+1; - synx = nasm_realloc(synx, (max_synx+1) * sizeof(*synx)); + max_synx = (max_synx << 1) + 1; + synx = nasm_realloc(synx, (max_synx + 1) * sizeof(*synx)); } nsynx++; |