[dovecot-cvs] dovecot/src/pop3-login client-authenticate.c, 1.27, 1.28

cras at dovecot.org cras at dovecot.org
Wed Sep 15 16:20:19 EEST 2004


Update of /var/lib/cvs/dovecot/src/pop3-login
In directory talvi:/tmp/cvs-serv22488/pop3-login

Modified Files:
	client-authenticate.c 
Log Message:
Compiler warning fixes and cleanups



Index: client-authenticate.c
===================================================================
RCS file: /var/lib/cvs/dovecot/src/pop3-login/client-authenticate.c,v
retrieving revision 1.27
retrieving revision 1.28
diff -u -d -r1.27 -r1.28
--- client-authenticate.c	2 Sep 2004 19:18:15 -0000	1.27
+++ client-authenticate.c	15 Sep 2004 13:20:17 -0000	1.28
@@ -258,8 +258,7 @@
 	linelen = strlen(line);
 	buf = buffer_create_static_hard(pool_datastack_create(), linelen);
 
-	if (base64_decode((const unsigned char *) line, linelen,
-			  NULL, buf) <= 0) {
+	if (base64_decode(line, linelen, NULL, buf) <= 0) {
 		/* failed */
 		client_auth_abort(client, "Invalid base64 data");
 	} else if (client->common.auth_request == NULL) {
@@ -322,8 +321,7 @@
 	argslen = strlen(args);
 	buf = buffer_create_static_hard(pool_datastack_create(), argslen);
 
-	if (base64_decode((const unsigned char *)args, argslen,
-			  NULL, buf) <= 0) {
+	if (base64_decode(args, argslen, NULL, buf) <= 0) {
 		/* failed */
 		client_send_line(client, "-ERR Invalid base64 data.");
 		return TRUE;



More information about the dovecot-cvs mailing list