diff options
author | Tom Lane | 2007-07-15 23:57:13 +0000 |
---|---|---|
committer | Tom Lane | 2007-07-15 23:57:13 +0000 |
commit | fa1341e3f0abc7732d264429a4e4b1706ccb1a25 (patch) | |
tree | 4518b9db61f7a31dba9d138687a50172a3c2a567 | |
parent | eb62a1ba2806485fe584e2813fd7f015053220c6 (diff) |
Get rid of overly cute, unportable, probably not very efficient substitute
for 'bool'. Per buildfarm warnings.
-rw-r--r-- | contrib/pgcrypto/mbuf.c | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/contrib/pgcrypto/mbuf.c b/contrib/pgcrypto/mbuf.c index 2103609a0e..2be7c1fd0f 100644 --- a/contrib/pgcrypto/mbuf.c +++ b/contrib/pgcrypto/mbuf.c @@ -42,8 +42,8 @@ struct MBuf uint8 *data_end; uint8 *read_pos; uint8 *buf_end; - int no_write:1; - int own_data:1; + bool no_write; + bool own_data; }; int @@ -129,8 +129,8 @@ mbuf_create(int len) mbuf->data_end = mbuf->data; mbuf->read_pos = mbuf->data; - mbuf->no_write = 0; - mbuf->own_data = 1; + mbuf->no_write = false; + mbuf->own_data = true; return mbuf; } @@ -146,8 +146,8 @@ mbuf_create_from_data(const uint8 *data, int len) mbuf->data_end = mbuf->data + len; mbuf->read_pos = mbuf->data; - mbuf->no_write = 1; - mbuf->own_data = 0; + mbuf->no_write = true; + mbuf->own_data = false; return mbuf; } @@ -159,7 +159,7 @@ mbuf_grab(MBuf * mbuf, int len, uint8 **data_p) if (len > mbuf_avail(mbuf)) len = mbuf_avail(mbuf); - mbuf->no_write = 1; + mbuf->no_write = true; *data_p = mbuf->read_pos; mbuf->read_pos += len; @@ -178,8 +178,8 @@ mbuf_steal_data(MBuf * mbuf, uint8 **data_p) { int len = mbuf_size(mbuf); - mbuf->no_write = 1; - mbuf->own_data = 0; + mbuf->no_write = true; + mbuf->own_data = false; *data_p = mbuf->data; |