]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
director: Code cleanup - rename director_kill_context.self to kill_is_self_initiated
authorTimo Sirainen <timo.sirainen@dovecot.fi>
Tue, 25 Oct 2016 18:41:16 +0000 (21:41 +0300)
committerTimo Sirainen <timo.sirainen@dovecot.fi>
Wed, 26 Oct 2016 10:06:48 +0000 (13:06 +0300)
src/director/director.c

index 1df240f60acf5d19086bd16b3167bf1f359cfbdd..37be3295949f4e39dfd824d8708083458c6d8d56 100644 (file)
@@ -882,7 +882,7 @@ director_user_kill_finish_delayed(struct director *dir, struct user *user,
 struct director_kill_context {
        struct director *dir;
        unsigned int username_hash;
-       bool self;
+       bool kill_is_self_initiated;
 };
 
 static void
@@ -941,7 +941,7 @@ static void director_kill_user_callback(enum ipc_client_cmd_state state,
        } else if (user->kill_state == USER_KILL_STATE_KILLING ||
                   user->kill_state == USER_KILL_STATE_KILLING_NOTIFY_RECEIVED) {
                /* we were still waiting for the kill notification */
-               director_finish_user_kill(ctx->dir, user, ctx->self);
+               director_finish_user_kill(ctx->dir, user, ctx->kill_is_self_initiated);
        } else {
                /* we don't currently want to kill the user */
        }
@@ -1014,7 +1014,7 @@ void director_move_user(struct director *dir, struct director_host *src,
                ctx = i_new(struct director_kill_context, 1);
                ctx->dir = dir;
                ctx->username_hash = username_hash;
-               ctx->self = src->self;
+               ctx->kill_is_self_initiated = src->self;
 
                dir->users_moving_count++;
                user->to_move = timeout_add(DIRECTOR_USER_MOVE_TIMEOUT_MSECS,