Skip to content

Commit

Permalink
acl-plugin: Whitespace fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
cmouse authored and GitLab committed Sep 7, 2016
1 parent 5f63ee5 commit b607b43
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
10 changes: 5 additions & 5 deletions src/plugins/acl/acl-api.c
Expand Up @@ -134,7 +134,7 @@ static int acl_object_get_my_rights_real(struct acl_object *aclobj, pool_t pool,
}

int acl_object_get_my_rights(struct acl_object *aclobj, pool_t pool,
const char *const **rights_r)
const char *const **rights_r)
{
int ret;

Expand All @@ -161,16 +161,16 @@ int acl_object_last_changed(struct acl_object *aclobj, time_t *last_changed_r)
int acl_object_update(struct acl_object *aclobj,
const struct acl_rights_update *update)
{
return aclobj->backend->v.object_update(aclobj, update);
return aclobj->backend->v.object_update(aclobj, update);
}

struct acl_object_list_iter *acl_object_list_init(struct acl_object *aclobj)
{
return aclobj->backend->v.object_list_init(aclobj);
return aclobj->backend->v.object_list_init(aclobj);
}

bool acl_object_list_next(struct acl_object_list_iter *iter,
struct acl_rights *rights_r)
struct acl_rights *rights_r)
{
if (iter->failed)
return FALSE;
Expand All @@ -183,7 +183,7 @@ int acl_object_list_deinit(struct acl_object_list_iter **_iter)
struct acl_object_list_iter *iter = *_iter;

*_iter = NULL;
return iter->aclobj->backend->v.object_list_deinit(iter);
return iter->aclobj->backend->v.object_list_deinit(iter);
}

struct acl_object_list_iter *
Expand Down
2 changes: 1 addition & 1 deletion src/plugins/acl/acl-api.h
Expand Up @@ -156,7 +156,7 @@ int acl_object_update(struct acl_object *aclobj,
/* List all identifiers. */
struct acl_object_list_iter *acl_object_list_init(struct acl_object *aclobj);
bool acl_object_list_next(struct acl_object_list_iter *iter,
struct acl_rights *rights_r);
struct acl_rights *rights_r);
int acl_object_list_deinit(struct acl_object_list_iter **iter);

/* Returns the canonical ID for the right. */
Expand Down
2 changes: 1 addition & 1 deletion src/plugins/acl/acl-attributes.c
Expand Up @@ -239,7 +239,7 @@ int acl_attribute_iter_deinit(struct mailbox_attribute_iter *iter)
if (abox->module_ctx.super.attribute_iter_deinit(aiter->super) < 0)
ret = -1;
}
if (aiter->acl_iter != && acl_object_list_deinit(&aiter->acl_iter) < 0) {
if (aiter->acl_iter != NULL && acl_object_list_deinit(&aiter->acl_iter) < 0) {
mail_storage_set_internal_error(aiter->iter.box->storage);
ret = -1;
}
Expand Down

0 comments on commit b607b43

Please sign in to comment.