summaryrefslogtreecommitdiffstats
path: root/src/ioq.h
diff options
context:
space:
mode:
authorTavian Barnes <tavianator@tavianator.com>2024-01-13 15:54:46 -0500
committerTavian Barnes <tavianator@tavianator.com>2024-01-13 15:54:46 -0500
commite766015d60c927aae03b8e43d956c6976c16b2ba (patch)
tree796b0ab4c94d3cf5e8c12b4d263e054eb04f6bcd /src/ioq.h
parente9588c49d5539ded993f720fc6855d6fa878c997 (diff)
downloadbfs-e766015d60c927aae03b8e43d956c6976c16b2ba.tar.xz
ioq: Use the negative errno convention
Diffstat (limited to 'src/ioq.h')
-rw-r--r--src/ioq.h6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/ioq.h b/src/ioq.h
index 87727cb..e1e5052 100644
--- a/src/ioq.h
+++ b/src/ioq.h
@@ -36,10 +36,8 @@ struct ioq_ent {
/** The I/O operation. */
enum ioq_op op;
- /** The return value of the operation. */
- int ret;
- /** The error code, if the operation failed. */
- int error;
+ /** The return value (on success) or negative error code (on failure). */
+ int result;
/** Arbitrary user data. */
void *ptr;