From: Stephan Bosch Date: Mon, 2 Oct 2017 13:14:26 +0000 (+0200) Subject: lib-auth-client: auth_master - Rename "cmd" parameter to parse_reply() to "reply" X-Git-Tag: 2.4.2~515 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=89d09190ff721f622625c40d4ad49880599999f1;p=thirdparty%2Fdovecot%2Fcore.git lib-auth-client: auth_master - Rename "cmd" parameter to parse_reply() to "reply" --- diff --git a/src/lib-auth-client/auth-master.c b/src/lib-auth-client/auth-master.c index b0c33ee2b2..ffa747559c 100644 --- a/src/lib-auth-client/auth-master.c +++ b/src/lib-auth-client/auth-master.c @@ -482,16 +482,16 @@ auth_master_event_finish(struct auth_master_connection *conn) } static int -parse_reply(struct auth_master_lookup_ctx *ctx, const char *cmd, +parse_reply(struct auth_master_lookup_ctx *ctx, const char *reply, const char *const *args) { struct auth_master_connection *conn = ctx->conn; - if (strcmp(cmd, ctx->expected_reply) == 0) + if (strcmp(reply, ctx->expected_reply) == 0) return 1; - if (strcmp(cmd, "NOTFOUND") == 0) + if (strcmp(reply, "NOTFOUND") == 0) return 0; - if (strcmp(cmd, "FAIL") == 0) { + if (strcmp(reply, "FAIL") == 0) { if (*args == NULL) { e_error(conn->event, "Auth %s lookup failed", ctx->expected_reply); @@ -502,7 +502,7 @@ parse_reply(struct auth_master_lookup_ctx *ctx, const char *cmd, } return -2; } - e_error(conn->event, "Unknown reply: %s", cmd); + e_error(conn->event, "Unknown reply: %s", reply); return -1; }