diff src/pop3/client.c @ 3863:55df57c028d4 HEAD

Added "bool" type and changed all ints that were used as booleans to bool.
author Timo Sirainen <tss@iki.fi>
date Fri, 13 Jan 2006 22:25:57 +0200
parents 46bfbbcc3c54
children 928229f8b3e6
line wrap: on
line diff
--- a/src/pop3/client.c	Fri Jan 13 17:11:47 2006 +0200
+++ b/src/pop3/client.c	Fri Jan 13 22:25:57 2006 +0200
@@ -57,7 +57,8 @@
         struct mailbox_status status;
 	struct mail *mail;
 	buffer_t *message_sizes_buf;
-	int i, failed;
+	int i;
+	bool failed;
 
 	message_sizes_buf = buffer_create_dynamic(default_pool, 512);
 
@@ -130,7 +131,7 @@
 {
 	struct client *client;
         enum mailbox_open_flags flags;
-	int syntax_error, temporary_error;
+	bool syntax_error, temporary_error;
 
 	/* always use nonblocking I/O */
 	net_set_nonblock(hin, TRUE);
@@ -300,7 +301,7 @@
 void client_send_storage_error(struct client *client)
 {
 	const char *error;
-	int syntax, temporary_error;
+	bool syntax, temporary_error;
 
 	if (mailbox_is_inconsistent(client->mailbox)) {
 		client_send_line(client, "-ERR Mailbox is in inconsistent "