[dovecot-cvs] dovecot/src/login-common login-proxy.c, 1.12, 1.13 login-proxy.h, 1.3, 1.4 main.c, 1.38, 1.39
tss at dovecot.org
tss at dovecot.org
Fri Dec 15 16:55:52 UTC 2006
Update of /var/lib/cvs/dovecot/src/login-common
In directory talvi:/tmp/cvs-serv346/login-common
Modified Files:
login-proxy.c login-proxy.h main.c
Log Message:
Added context parameter type safety checks for most callback APIs.
Index: login-proxy.c
===================================================================
RCS file: /var/lib/cvs/dovecot/src/login-common/login-proxy.c,v
retrieving revision 1.12
retrieving revision 1.13
diff -u -d -r1.12 -r1.13
--- login-proxy.c 13 Oct 2006 23:11:04 -0000 1.12
+++ login-proxy.c 15 Dec 2006 16:55:48 -0000 1.13
@@ -141,6 +141,7 @@
io_add(proxy->server_fd, IO_READ, proxy_prelogin_input, proxy);
}
+#undef login_proxy_new
struct login_proxy *
login_proxy_new(struct client *client, const char *host, unsigned int port,
proxy_callback_t *callback, void *context)
Index: login-proxy.h
===================================================================
RCS file: /var/lib/cvs/dovecot/src/login-common/login-proxy.h,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -d -r1.3 -r1.4
--- login-proxy.h 6 Aug 2006 20:05:35 -0000 1.3
+++ login-proxy.h 15 Dec 2006 16:55:48 -0000 1.4
@@ -12,6 +12,9 @@
struct login_proxy *
login_proxy_new(struct client *client, const char *host, unsigned int port,
proxy_callback_t *callback, void *context);
+#define login_proxy_new(client, host, port, callback, context) \
+ CONTEXT_CALLBACK3(login_proxy_new, proxy_callback_t, \
+ callback, context, client, host, port)
/* Free the proxy. This should be called if authentication fails. */
void login_proxy_free(struct login_proxy *proxy);
Index: main.c
===================================================================
RCS file: /var/lib/cvs/dovecot/src/login-common/main.c,v
retrieving revision 1.38
retrieving revision 1.39
diff -u -d -r1.38 -r1.39
--- main.c 3 Dec 2006 13:50:45 -0000 1.38
+++ main.c 15 Dec 2006 16:55:48 -0000 1.39
@@ -276,7 +276,7 @@
lib_signals_init();
lib_signals_set_handler(SIGINT, TRUE, sig_die, NULL);
lib_signals_set_handler(SIGTERM, TRUE, sig_die, NULL);
- lib_signals_ignore(SIGPIPE);
+ lib_signals_ignore(SIGPIPE, TRUE);
disable_plaintext_auth = getenv("DISABLE_PLAINTEXT_AUTH") != NULL;
process_per_connection = getenv("PROCESS_PER_CONNECTION") != NULL;
More information about the dovecot-cvs
mailing list