changeset 3790:70a9d66adc97 HEAD

Cleanup
author Timo Sirainen <tss@iki.fi>
date Sat, 31 Dec 2005 00:17:38 +0200
parents 0120998fb2d9
children 785321049f51
files src/dict/dict-server.c src/dict/main.c
diffstat 2 files changed, 2 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/src/dict/dict-server.c	Sat Dec 31 00:16:35 2005 +0200
+++ b/src/dict/dict-server.c	Sat Dec 31 00:17:38 2005 +0200
@@ -54,7 +54,7 @@
 static int cmd_lookup(struct dict_client_connection *conn, const char *line)
 {
 	const char *reply;
-	char *value;
+	const char *value;
 	int ret;
 
 	/* <key> */
--- a/src/dict/main.c	Sat Dec 31 00:16:35 2005 +0200
+++ b/src/dict/main.c	Sat Dec 31 00:17:38 2005 +0200
@@ -14,8 +14,6 @@
 #include <stdlib.h>
 #include <syslog.h>
 
-#define DICT_SERVER_PATH "/var/run/dovecot/dict-server"
-
 struct ioloop *ioloop;
 
 static struct module *modules;
@@ -56,7 +54,7 @@
 	modules = getenv("MODULE_DIR") == NULL ? NULL :
 		module_dir_load(getenv("MODULE_DIR"), TRUE);
 
-	dict_server = dict_server_init(DICT_SERVER_PATH);
+	dict_server = dict_server_init(DEFAULT_DICT_SERVER_SOCKET_PATH);
 }
 
 static void main_deinit(void)