]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
quota-fs: Remove T_BEGIN..T_END from fs_quota_get_resource()
authorMartti Rannanjärvi <martti.rannanjarvi@dovecot.fi>
Mon, 16 Oct 2017 19:50:11 +0000 (22:50 +0300)
committerTimo Sirainen <tss@dovecot.fi>
Thu, 19 Oct 2017 13:43:44 +0000 (16:43 +0300)
This is to enable using t_strdup_printf() with error_r later on.

src/plugins/quota/quota-fs.c

index c38e0204c65422072bd6bcd39b5a8b96024c33f3..7d46fd9dee599ad11808825f2865da02503bdbbd 100644 (file)
@@ -872,12 +872,10 @@ fs_quota_get_resource(struct quota_root *_root, const char *name,
 
 #ifdef HAVE_RQUOTA
        if (mount_type_is_nfs(root->mount)) {
-               T_BEGIN {
-                       ret = root->user_disabled ? 0 :
-                               do_rquota_user(root, &bytes_value, &bytes_limit, &count_value, &count_limit);
-                       if (ret == 0 && !root->group_disabled)
-                               ret = do_rquota_group(root, &bytes_value, &bytes_limit, &count_value, &count_limit);
-               } T_END;
+               ret = root->user_disabled ? 0 :
+                       do_rquota_user(root, &bytes_value, &bytes_limit, &count_value, &count_limit);
+               if (ret == 0 && !root->group_disabled)
+                       ret = do_rquota_group(root, &bytes_value, &bytes_limit, &count_value, &count_limit);
        } else
 #endif
        {