commit 2013e50b1c6c1f37a791e72a59ee8e54d23653fb
parent 02af3f4c732333a9586f733cdceea36417500072
Author: Oswald Buddenhagen <ossi@users.sf.net>
Date: Sat, 9 May 2015 17:44:36 +0200
rename misnamed functions concerning sending imap commands
cmd_submittable() => cmd_sendable()
cancel_submitted_imap_cmds() => cancel_sent_imap_cmds()
the sequence is exec -> submit -> send.
Diffstat:
1 file changed, 5 insertions(+), 5 deletions(-)
diff --git a/src/drv_imap.c b/src/drv_imap.c
@@ -322,7 +322,7 @@ send_imap_cmd( imap_store_t *ctx, struct imap_cmd *cmd )
}
static int
-cmd_submittable( imap_store_t *ctx, struct imap_cmd *cmd )
+cmd_sendable( imap_store_t *ctx, struct imap_cmd *cmd )
{
struct imap_cmd *cmdp;
@@ -340,7 +340,7 @@ flush_imap_cmds( imap_store_t *ctx )
{
struct imap_cmd *cmd;
- if ((cmd = ctx->pending) && cmd_submittable( ctx, cmd )) {
+ if ((cmd = ctx->pending) && cmd_sendable( ctx, cmd )) {
if (!(ctx->pending = cmd->next))
ctx->pending_append = &ctx->pending;
send_imap_cmd( ctx, cmd );
@@ -360,7 +360,7 @@ cancel_pending_imap_cmds( imap_store_t *ctx )
}
static void
-cancel_submitted_imap_cmds( imap_store_t *ctx )
+cancel_sent_imap_cmds( imap_store_t *ctx )
{
struct imap_cmd *cmd;
@@ -379,7 +379,7 @@ submit_imap_cmd( imap_store_t *ctx, struct imap_cmd *cmd )
assert( cmd );
assert( cmd->param.done );
- if ((ctx->pending && !cmd->param.high_prio) || !cmd_submittable( ctx, cmd )) {
+ if ((ctx->pending && !cmd->param.high_prio) || !cmd_sendable( ctx, cmd )) {
if (ctx->pending && cmd->param.high_prio) {
cmd->next = ctx->pending;
ctx->pending = cmd;
@@ -1425,7 +1425,7 @@ imap_cancel_store( store_t *gctx )
sasl_dispose( &ctx->sasl );
#endif
socket_close( &ctx->conn );
- cancel_submitted_imap_cmds( ctx );
+ cancel_sent_imap_cmds( ctx );
cancel_pending_imap_cmds( ctx );
free_generic_messages( ctx->gen.msgs );
free_string_list( ctx->gen.boxes );