[dovecot-cvs] dovecot/src/util rawlog.c,1.10,1.11

tss at dovecot.org tss at dovecot.org
Fri Jan 26 13:58:59 UTC 2007


Update of /var/lib/cvs/dovecot/src/util
In directory talvi:/tmp/cvs-serv15340/util

Modified Files:
	rawlog.c 
Log Message:
Cleanups and minor fixes



Index: rawlog.c
===================================================================
RCS file: /var/lib/cvs/dovecot/src/util/rawlog.c,v
retrieving revision 1.10
retrieving revision 1.11
diff -u -d -r1.10 -r1.11
--- rawlog.c	5 Jan 2007 14:52:13 -0000	1.10
+++ rawlog.c	26 Jan 2007 13:58:57 -0000	1.11
@@ -224,7 +224,7 @@
 		proxy->fd_out = open(fname, O_CREAT|O_EXCL|O_WRONLY, 0600);
 		if (proxy->fd_out == -1) {
 			i_error("rawlog_open: open() failed for %s: %m", fname);
-			close(proxy->fd_in);
+			(void)close(proxy->fd_in);
 			proxy->fd_in = -1;
 			return;
 		}
@@ -299,11 +299,11 @@
 			i_fatal("dup2(sfd, 0)");
 		if (dup2(sfd[1], 1) < 0)
 			i_fatal("dup2(sfd, 1)");
-		close(sfd[0]);
-		close(sfd[1]);
+		(void)close(sfd[0]);
+		(void)close(sfd[1]);
 		return;
 	}
-	close(sfd[1]);
+	(void)close(sfd[1]);
 
 	restrict_access_by_env(TRUE);
 



More information about the dovecot-cvs mailing list