"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "src/indexer/indexer-client.c" between
dovecot-2.3.16.tar.gz and dovecot-2.3.17.tar.gz

About: Dovecot is an IMAP and POP3 server, written with security primarily in mind.

indexer-client.c  (dovecot-2.3.16):indexer-client.c  (dovecot-2.3.17)
skipping to change at line 142 skipping to change at line 142
return -1; return -1;
} }
return 1; return 1;
} }
void indexer_client_status_callback(int percentage, void *context) void indexer_client_status_callback(int percentage, void *context)
{ {
struct indexer_client_request *ctx = context; struct indexer_client_request *ctx = context;
/* we are in deinit already, or the client has disconnected */ /* we are in deinit already, or the client has disconnected */
if (ctx->client == NULL) if (ctx->client->conn.output == NULL)
return; return;
T_BEGIN { T_BEGIN {
o_stream_nsend_str(ctx->client->conn.output, o_stream_nsend_str(ctx->client->conn.output,
t_strdup_printf("%u\t%d\n", ctx->tag, percentage)); t_strdup_printf("%u\t%d\n", ctx->tag, percentage));
} T_END; } T_END;
if (percentage < 0 || percentage == 100) { if (percentage < 0 || percentage == 100) {
indexer_client_unref(ctx->client); indexer_client_unref(ctx->client);
i_free(ctx); i_free(ctx);
} }
 End of changes. 1 change blocks. 
1 lines changed or deleted 1 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)