[dovecot-cvs] dovecot/src/auth login-connection.c,1.14,1.15 main.c,1.15,1.16 master-connection.c,1.1,1.2

cras at procontrol.fi cras at procontrol.fi
Mon Jan 27 03:44:36 EET 2003


Update of /home/cvs/dovecot/src/auth
In directory danu:/tmp/cvs-serv23816/auth

Modified Files:
	login-connection.c main.c master-connection.c 
Log Message:
Removed useless parameters from io_callback_t and timeout_callback_t.



Index: login-connection.c
===================================================================
RCS file: /home/cvs/dovecot/src/auth/login-connection.c,v
retrieving revision 1.14
retrieving revision 1.15
diff -u -d -r1.14 -r1.15
--- login-connection.c	27 Jan 2003 01:33:40 -0000	1.14
+++ login-connection.c	27 Jan 2003 01:44:34 -0000	1.15
@@ -138,8 +138,7 @@
 	}
 }
 
-static void login_input(void *context, int fd __attr_unused__,
-			struct io *io __attr_unused__)
+static void login_input(void *context)
 {
 	struct login_connection *conn  = context;
 

Index: main.c
===================================================================
RCS file: /home/cvs/dovecot/src/auth/main.c,v
retrieving revision 1.15
retrieving revision 1.16
diff -u -d -r1.15 -r1.16
--- main.c	27 Jan 2003 01:33:40 -0000	1.15
+++ main.c	27 Jan 2003 01:44:34 -0000	1.16
@@ -26,12 +26,11 @@
 	io_loop_stop(ioloop);
 }
 
-static void auth_accept(void *context __attr_unused__, int listen_fd,
-			struct io *io __attr_unused__)
+static void auth_accept(void *context __attr_unused__)
 {
 	int fd;
 
-	fd = net_accept(listen_fd, NULL, NULL);
+	fd = net_accept(LOGIN_LISTEN_FD, NULL, NULL);
 	if (fd < 0) {
 		if (fd < -1)
 			i_fatal("accept() failed: %m");

Index: master-connection.c
===================================================================
RCS file: /home/cvs/dovecot/src/auth/master-connection.c,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -d -r1.1 -r1.2
--- master-connection.c	27 Jan 2003 01:33:40 -0000	1.1
+++ master-connection.c	27 Jan 2003 01:44:34 -0000	1.2
@@ -110,12 +110,11 @@
 	}
 }
 
-static void master_input(void *context __attr_unused__, int fd,
-			 struct io *io __attr_unused__)
+static void master_input(void *context __attr_unused__)
 {
 	int ret;
 
-	ret = net_receive(fd, master_buf + master_pos,
+	ret = net_receive(MASTER_SOCKET_FD, master_buf + master_pos,
 			  sizeof(master_buf) - master_pos);
 	if (ret < 0) {
 		/* master died, kill ourself too */
@@ -129,7 +128,7 @@
 
 	/* reply is now read */
 	master_handle_request((struct auth_master_request *) master_buf,
-			      fd);
+			      MASTER_SOCKET_FD);
 	master_pos = 0;
 }
 




More information about the dovecot-cvs mailing list