aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--include/slibc-human.h8
-rw-r--r--src/slibc-human/humanmode.c8
2 files changed, 8 insertions, 8 deletions
diff --git a/include/slibc-human.h b/include/slibc-human.h
index ab89036..dbb0a98 100644
--- a/include/slibc-human.h
+++ b/include/slibc-human.h
@@ -42,19 +42,19 @@ enum humanmode_mode
* Return in the format where 0750
* resolves to 'rwxr-x---'.
*
- * If used in combination with `MACHINEMODE_MASK`,
+ * If used in combination with `HUMANMODE_MASK`,
* 0750 resolves to 'u=rwx,g=r-x,o=---'.
*/
- MACHINEMODE_STAT = 1,
+ HUMANMODE_STAT = 1,
/**
* Return in the format where 0750
* resolves to 'u=rwx,g=rx,o='.
*
- * If used in combination with `MACHINEMODE_STAT`,
+ * If used in combination with `HUMANMODE_STAT`,
* 0750 resolves to 'u=rwx,g=r-x,o=---'.
*/
- MACHINEMODE_MASK = 2,
+ HUMANMODE_MASK = 2,
};
diff --git a/src/slibc-human/humanmode.c b/src/slibc-human/humanmode.c
index 1b5360b..83aba68 100644
--- a/src/slibc-human/humanmode.c
+++ b/src/slibc-human/humanmode.c
@@ -38,17 +38,17 @@
*/
char* humanmode(char* restrict buffer, mode_t perm, enum humanmode_mode mode)
{
- mode_t perm_ = perm | (mode != MACHINEMODE_MASK ? 07777 : 0);
- int name = mode & MACHINEMODE_MASK;
+ mode_t perm_ = perm | (mode != HUMANMODE_MASK ? 07777 : 0);
+ int name = mode & HUMANMODE_MASK;
char* w;
if (mode & ~3)
return errno = EINVAL, NULL;
if (!mode)
- mode = MACHINEMODE_STAT;
+ mode = HUMANMODE_STAT;
if (buffer == NULL)
- buffer = malloc((mode == MACHINEMODE_STAT ? 10 : 18) * sizeof(char));
+ buffer = malloc((mode == HUMANMODE_STAT ? 10 : 18) * sizeof(char));
if (buffer == NULL)
return NULL;
w = buffer;