[dovecot-cvs] dovecot/src/auth auth.c,1.3,1.4 userinfo-passwd-file.c,1.8,1.9

cras at procontrol.fi cras at procontrol.fi
Mon Oct 28 11:46:04 EET 2002


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

Modified Files:
	auth.c userinfo-passwd-file.c 
Log Message:
Added --enable-asserts (default) and fixed some warnings when building
without. Added i_unreached() to indicate supposedly unreachable code block
and changed a existing i_assert(0) calls to it. Removed return_if_fail() and
return_val_if_fail() macros, they're not useful.



Index: auth.c
===================================================================
RCS file: /home/cvs/dovecot/src/auth/auth.c,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -d -r1.3 -r1.4
--- auth.c	9 Oct 2002 17:49:41 -0000	1.3
+++ auth.c	28 Oct 2002 09:46:02 -0000	1.4
@@ -75,7 +75,7 @@
 		}
 	}
 
-	i_assert(0);
+	i_unreached();
 }
 
 void auth_continue_request(AuthContinuedRequestData *request,

Index: userinfo-passwd-file.c
===================================================================
RCS file: /home/cvs/dovecot/src/auth/userinfo-passwd-file.c,v
retrieving revision 1.8
retrieving revision 1.9
diff -u -d -r1.8 -r1.9
--- userinfo-passwd-file.c	13 Oct 2002 23:49:11 -0000	1.8
+++ userinfo-passwd-file.c	28 Oct 2002 09:46:02 -0000	1.9
@@ -141,7 +141,7 @@
 			return FALSE;
 		break;
 	default:
-		i_assert(0);
+                i_unreached();
 	}
 
 	/* found */




More information about the dovecot-cvs mailing list