Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/amachronic/microtar.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAidan MacDonald <amachronic@protonmail.com>2021-11-05 17:30:51 +0300
committerAidan MacDonald <amachronic@protonmail.com>2021-11-05 18:16:16 +0300
commit5c48c0a8bdf896837b2860bb526c69280c9517c7 (patch)
tree20492a7c35d089992f3fe8181ef6dce8a73475ee
parent0c6fb31b432c784180eb08d576b8abd33dd6bb7a (diff)
Give names to the enums
However we don't use enum types in the code for ABI reasons.
-rw-r--r--src/microtar.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/microtar.h b/src/microtar.h
index 5e32958..7051c18 100644
--- a/src/microtar.h
+++ b/src/microtar.h
@@ -30,7 +30,7 @@ extern "C" {
#include <stdio.h> /* SEEK_SET et al. */
-enum {
+enum mtar_error {
MTAR_ESUCCESS = 0,
MTAR_EFAILURE = -1,
MTAR_EOPENFAIL = -2,
@@ -48,7 +48,7 @@ enum {
MTAR_ELAST = MTAR_ETOOSHORT,
};
-enum {
+enum mtar_type {
MTAR_TREG = '0',
MTAR_TLNK = '1',
MTAR_TSYM = '2',
@@ -58,7 +58,7 @@ enum {
MTAR_TFIFO = '6',
};
-enum {
+enum mtar_access {
MTAR_READ,
MTAR_WRITE,
};