[patch tabled 1/1] use true/false for bool

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



In places, I automatically typed 0 and 1 for false and true, although
the type is bool, so clean it up.

Signed-off-by: Pete Zaitcev <zaitcev@xxxxxxxxxx>

---
 server/storage.c |   12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

commit 769490d6c4570cc929022f9bd9cc593bc86bc602
Author: Pete Zaitcev <zaitcev@xxxxxxxxx>
Date:   Thu Oct 28 21:34:41 2010 -0600

    Use true/false for bool.

diff --git a/server/storage.c b/server/storage.c
index cac5a96..fc232ba 100644
--- a/server/storage.c
+++ b/server/storage.c
@@ -90,7 +90,7 @@ static void stor_read_event(int fd, short events, void *userdata)
 {
 	struct open_chunk *cep = userdata;
 
-	cep->r_armed = 0;		/* no EV_PERSIST */
+	cep->r_armed = false;		/* no EV_PERSIST */
 	if (cep->rcb)
 		(*cep->rcb)(cep);
 }
@@ -99,7 +99,7 @@ static void stor_write_event(int fd, short events, void *userdata)
 {
 	struct open_chunk *cep = userdata;
 
-	cep->w_armed = 0;		/* no EV_PERSIST */
+	cep->w_armed = false;		/* no EV_PERSIST */
 	if (cep->wcb)
 		(*cep->wcb)(cep);
 }
@@ -211,7 +211,7 @@ void stor_close(struct open_chunk *cep)
 
 	if (cep->r_armed) {
 		event_del(&cep->revt);
-		cep->r_armed = 0;
+		cep->r_armed = false;
 	}
 	cep->rsize = 0;
 
@@ -262,7 +262,7 @@ void stor_abort(struct open_chunk *cep)
 
 	if (cep->r_armed) {
 		event_del(&cep->revt);
-		cep->r_armed = 0;
+		cep->r_armed = false;
 	}
 	cep->rsize = 0;
 
@@ -340,9 +340,9 @@ ssize_t stor_get_buf(struct open_chunk *cep, void *data, size_t req_len)
 	}
 
 	if (xfer_len != ret && cep->rsize && !cep->r_armed) {
-		cep->r_armed = 1;
+		cep->r_armed = true;
 		if (event_add(&cep->revt, NULL))
-			cep->r_armed = 0;
+			cep->r_armed = false;
 	}
 
 	return ret;
--
To unsubscribe from this list: send the line "unsubscribe hail-devel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Fedora Clound]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [XFree86]

  Powered by Linux