1
0
mirror of https://sourceware.org/git/glibc.git synced 2025-07-29 11:41:21 +03:00

Correct default mount point in comments. (freeit): Remove unnecessary test.

This commit is contained in:
Ulrich Drepper
2000-10-18 20:46:52 +00:00
parent cd3cd00ccb
commit b26a9120ec

View File

@ -54,7 +54,7 @@ where_is_shmfs (void)
struct mntent *mp; struct mntent *mp;
FILE *fp; FILE *fp;
/* The canonical place is /var/shm. This is at least what the /* The canonical place is /dev/shm. This is at least what the
documentation tells everybody to do. */ documentation tells everybody to do. */
if (__statfs (defaultdir, &f) == 0 && f.f_type == SHMFS_SUPER_MAGIC) if (__statfs (defaultdir, &f) == 0 && f.f_type == SHMFS_SUPER_MAGIC)
{ {
@ -116,7 +116,7 @@ where_is_shmfs (void)
/* Open shared memory object. This implementation assumes the shmfs /* Open shared memory object. This implementation assumes the shmfs
implementation introduced in the late 2.3.x kernel series to be implementation introduced in the late 2.3.x kernel series to be
available. Normally the filesystem will be mounted at /var/shm but available. Normally the filesystem will be mounted at /dev/shm but
we fall back on searching for the actual mount point should opening we fall back on searching for the actual mount point should opening
such a file fail. */ such a file fail. */
int int
@ -230,7 +230,7 @@ shm_unlink (const char *name)
void void
freeit (void) freeit (void)
{ {
if (mountpoint.dir != NULL && mountpoint.dir != defaultdir) if (mountpoint.dir != defaultdir)
free (mountpoint.dir); free (mountpoint.dir);
} }