summaryrefslogtreecommitdiffstats
path: root/xlators/mgmt/glusterd/src/glusterd-quota.c
diff options
context:
space:
mode:
Diffstat (limited to 'xlators/mgmt/glusterd/src/glusterd-quota.c')
-rw-r--r--xlators/mgmt/glusterd/src/glusterd-quota.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/xlators/mgmt/glusterd/src/glusterd-quota.c b/xlators/mgmt/glusterd/src/glusterd-quota.c
index 0592585d..1be768af 100644
--- a/xlators/mgmt/glusterd/src/glusterd-quota.c
+++ b/xlators/mgmt/glusterd/src/glusterd-quota.c
@@ -604,10 +604,13 @@ glusterd_set_quota_limit (char *volname, char *path, char *hard_limit,
* OR
* change the data-types of hard_lim and soft_lim_percent to uint64_t
*/
- struct quota_limits {
+ typedef struct quota_limits {
uint64_t hl;
uint64_t sl;
- } __attribute__ ((__packed__)) existing_limit, new_limit = {0,};
+ } __attribute__ ((__packed__)) quota_limits_t;
+
+ quota_limits_t existing_limit = {0,};
+ quota_limits_t new_limit = {0,};
this = THIS;
GF_ASSERT (this);