diff options
author | Neal H. Walfield <[email protected]> | 2015-09-01 20:17:23 +0000 |
---|---|---|
committer | Neal H. Walfield <[email protected]> | 2015-09-02 08:07:40 +0000 |
commit | 24259d856b6cbdd679035512a8fb7c042de8f02e (patch) | |
tree | 634e6291107489e5b2e2b05d1bddb8766bc1059c /common/iobuf.h | |
parent | iobuf: Fix test. (diff) | |
download | gnupg-24259d856b6cbdd679035512a8fb7c042de8f02e.tar.gz gnupg-24259d856b6cbdd679035512a8fb7c042de8f02e.zip |
iobuf: Use a first-class enum.
* common/iobuf.h (enum iobuf_use): Name the IOBUF_OUTPUT, etc. enum.
(struct iobuf_struct): Change the field use's type to it.
--
Signed-off-by: Neal H. Walfield <[email protected]>.
Diffstat (limited to 'common/iobuf.h')
-rw-r--r-- | common/iobuf.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/common/iobuf.h b/common/iobuf.h index 7157e0f44..36b14b7d4 100644 --- a/common/iobuf.h +++ b/common/iobuf.h @@ -118,7 +118,7 @@ typedef enum IOBUF_IOCTL_FSYNC = 4 /* Uses ptrval. */ } iobuf_ioctl_t; -enum +enum iobuf_use { /* Pipeline is in input mode. The data flows from the end to the beginning. That is, when reading from the pipeline, the first @@ -143,7 +143,7 @@ struct iobuf_struct { /* The type of filter. Either IOBUF_INPUT, IOBUF_OUTPUT or IOBUF_TEMP. */ - int use; + enum iobuf_use use; /* nlimit can be changed using iobuf_set_limit. If non-zero, it is the number of additional bytes that can be read from the filter |