diff options
author | Mattias Andrée <maandree@operamail.com> | 2015-11-16 00:31:19 +0100 |
---|---|---|
committer | Mattias Andrée <maandree@operamail.com> | 2015-11-16 00:31:19 +0100 |
commit | 5f686fa4e2a6eb2d35036586d0a324a800b60014 (patch) | |
tree | bfab1034f54e0d78d808a85b4ebe1c3b74148978 /src/slibc-human | |
parent | m doc (diff) | |
download | slibc-5f686fa4e2a6eb2d35036586d0a324a800b60014.tar.gz slibc-5f686fa4e2a6eb2d35036586d0a324a800b60014.tar.bz2 slibc-5f686fa4e2a6eb2d35036586d0a324a800b60014.tar.xz |
m fix humanmode
Signed-off-by: Mattias Andrée <maandree@operamail.com>
Diffstat (limited to 'src/slibc-human')
-rw-r--r-- | src/slibc-human/humanmode.c | 8 |
1 files changed, 4 insertions, 4 deletions
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; |