summaryrefslogtreecommitdiff
path: root/sysdeps/posix/shm_unlink.c
diff options
context:
space:
mode:
Diffstat (limited to 'sysdeps/posix/shm_unlink.c')
-rw-r--r--sysdeps/posix/shm_unlink.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/sysdeps/posix/shm_unlink.c b/sysdeps/posix/shm_unlink.c
index 79f6751ebd..b67240f838 100644
--- a/sysdeps/posix/shm_unlink.c
+++ b/sysdeps/posix/shm_unlink.c
@@ -1,5 +1,5 @@
/* shm_unlink -- remove a POSIX shared memory object. Generic POSIX version.
- Copyright (C) 2001 Free Software Foundation, Inc.
+ Copyright (C) 2001,02 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
@@ -30,7 +30,7 @@
#include <stdlib.h>
#include <paths.h>
-#define SHMDIR (_PATH_VARRUN "shm/")
+#define SHMDIR (_PATH_DEV "shm/")
/* Remove shared memory object. */
int
@@ -55,7 +55,6 @@ shm_unlink (const char *name)
__mempcpy (__mempcpy (fname, SHMDIR, sizeof SHMDIR - 1),
name, namelen + 1);
-
return unlink (name);
}