From: Stephan Bosch Date: Wed, 29 Aug 2018 21:51:09 +0000 (+0200) Subject: submission: Move generic part of NOOP command to submission-commands.c. X-Git-Tag: 2.3.9~1331 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=371893e1e9fe04890a1f4e49615b2198e7367589;p=thirdparty%2Fdovecot%2Fcore.git submission: Move generic part of NOOP command to submission-commands.c. --- diff --git a/src/submission/cmd-noop.c b/src/submission/cmd-noop.c index 6cd7da50bb..393d5e9c83 100644 --- a/src/submission/cmd-noop.c +++ b/src/submission/cmd-noop.c @@ -45,10 +45,3 @@ int cmd_noop_relay(struct client *client, struct smtp_server_cmd_ctx *cmd) (client->proxy_conn, 0, cmd_noop_proxy_cb, noop_cmd); return 0; } - -int cmd_noop(void *conn_ctx, struct smtp_server_cmd_ctx *cmd) -{ - struct client *client = conn_ctx; - - return cmd_noop_relay(client, cmd); -} diff --git a/src/submission/submission-commands.c b/src/submission/submission-commands.c index fadd8e4c48..4dc2e2608b 100644 --- a/src/submission/submission-commands.c +++ b/src/submission/submission-commands.c @@ -427,3 +427,14 @@ int cmd_vrfy(void *conn_ctx, struct smtp_server_cmd_ctx *cmd, return cmd_vrfy_relay(client, cmd, param); } + +/* + * NOOP command + */ + +int cmd_noop(void *conn_ctx, struct smtp_server_cmd_ctx *cmd) +{ + struct client *client = conn_ctx; + + return cmd_noop_relay(client, cmd); +}