[dovecot-cvs] dovecot/src/lib-dict dict-client.c,1.6,1.7

cras at dovecot.org cras at dovecot.org
Tue Feb 7 10:01:18 EET 2006


Update of /var/lib/cvs/dovecot/src/lib-dict
In directory talvi:/tmp/cvs-serv3455

Modified Files:
	dict-client.c 
Log Message:
LF wasn't sent at the end of all commands.



Index: dict-client.c
===================================================================
RCS file: /var/lib/cvs/dovecot/src/lib-dict/dict-client.c,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -d -r1.6 -r1.7
--- dict-client.c	31 Jan 2006 06:05:22 -0000	1.6
+++ dict-client.c	7 Feb 2006 08:01:15 -0000	1.7
@@ -392,7 +392,7 @@
 		ret = -1;
 	else {
 		t_push();
-		query = t_strdup_printf("%c%u", !ctx->failed ?
+		query = t_strdup_printf("%c%u\n", !ctx->failed ?
 					DICT_PROTOCOL_CMD_COMMIT :
 					DICT_PROTOCOL_CMD_ROLLBACK,
 					ctx->id);
@@ -425,7 +425,7 @@
 
 	if (ctx->connect_counter == dict->connect_counter) {
 		t_push();
-		query = t_strdup_printf("%c%u", DICT_PROTOCOL_CMD_ROLLBACK,
+		query = t_strdup_printf("%c%u\n", DICT_PROTOCOL_CMD_ROLLBACK,
 					ctx->id);
 		(void)client_dict_send_query(dict, query);
 		t_pop();
@@ -445,7 +445,8 @@
 		return;
 
 	t_push();
-	query = t_strdup_printf("%c%u\t%s\t%s", DICT_PROTOCOL_CMD_SET, ctx->id,
+	query = t_strdup_printf("%c%u\t%s\t%s\n",
+				DICT_PROTOCOL_CMD_SET, ctx->id,
 				dict_client_escape(key),
 				dict_client_escape(value));
 	if (client_dict_send_query(dict, query) < 0)
@@ -454,7 +455,7 @@
 }
 
 static void client_dict_atomic_inc(struct dict_transaction_context *_ctx,
-				const char *key, long long diff)
+				   const char *key, long long diff)
 {
 	struct client_dict_transaction_context *ctx =
 		(struct client_dict_transaction_context *)_ctx;
@@ -465,7 +466,8 @@
 		return;
 
 	t_push();
-	query = t_strdup_printf("%c%u\t%s\t%lld", DICT_PROTOCOL_CMD_ATOMIC_INC,
+	query = t_strdup_printf("%c%u\t%s\t%lld\n",
+				DICT_PROTOCOL_CMD_ATOMIC_INC,
 				ctx->id, dict_client_escape(key), diff);
 	if (client_dict_send_query(dict, query) < 0)
 		ctx->failed = TRUE;



More information about the dovecot-cvs mailing list