summaryrefslogtreecommitdiffstats
path: root/src/errno_status.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/errno_status.c')
-rw-r--r--src/errno_status.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/errno_status.c b/src/errno_status.c
index 887158f..ed09b24 100644
--- a/src/errno_status.c
+++ b/src/errno_status.c
@@ -3,7 +3,7 @@
#include "errno_status.h"
-#include "zix/status.h"
+#include <zix/status.h>
#include <errno.h>
#include <stddef.h>
@@ -41,7 +41,7 @@ zix_errno_status(const int e)
{0, ZIX_STATUS_ERROR}, // Fallback mapping
};
- static const size_t n_mappings = sizeof(map) / sizeof(Mapping) - 1U;
+ static const size_t n_mappings = (sizeof(map) / sizeof(Mapping)) - 1U;
// Find the index of the matching mapping (or leave it at the fallback entry)
size_t m = 0;