aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMattias Andrée <maandree@operamail.com>2015-11-16 00:31:19 +0100
committerMattias Andrée <maandree@operamail.com>2015-11-16 00:31:19 +0100
commit5f686fa4e2a6eb2d35036586d0a324a800b60014 (patch)
treebfab1034f54e0d78d808a85b4ebe1c3b74148978 /src
parentm doc (diff)
downloadslibc-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')
-rw-r--r--src/slibc-human/humanmode.c8
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;