mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2026-05-24 03:08:51 +03:00
Fix gcc c90 compliance warnings
Fix non-c90 compliant code, for the most part these changes simply deal with where a particular variable is declared. Under c90 it must alway be done at the very start of a block. Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
This commit is contained in:
+3
-1
@@ -163,9 +163,11 @@ zrl_exit(zrlock_t *zrl)
|
||||
int
|
||||
zrl_refcount(zrlock_t *zrl)
|
||||
{
|
||||
int n;
|
||||
|
||||
ASSERT(zrl->zr_refcount > ZRL_DESTROYED);
|
||||
|
||||
int n = (int)zrl->zr_refcount;
|
||||
n = (int)zrl->zr_refcount;
|
||||
return (n <= 0 ? 0 : n);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user