diff options
author | Andreas Jaeger <aj@suse.de> | 2000-07-06 21:04:09 +0000 |
---|---|---|
committer | Andreas Jaeger <aj@suse.de> | 2000-07-06 21:04:09 +0000 |
commit | 2ee24ea53ee8546dd05948f7417f1320ec15dbb9 (patch) | |
tree | 23e119c0e1e80101d57e079fc28aeaecf118ca45 /sysdeps/unix | |
parent | 1055cf7c608768c2e2a264255877c0f9416d2821 (diff) | |
download | glibc-2ee24ea53ee8546dd05948f7417f1320ec15dbb9.tar.gz glibc-2ee24ea53ee8546dd05948f7417f1320ec15dbb9.tar.xz glibc-2ee24ea53ee8546dd05948f7417f1320ec15dbb9.zip |
(get_proc_path): The type of the proc system is "proc".
Diffstat (limited to 'sysdeps/unix')
-rw-r--r-- | sysdeps/unix/sysv/linux/getsysstats.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sysdeps/unix/sysv/linux/getsysstats.c b/sysdeps/unix/sysv/linux/getsysstats.c index 50f7317dae..a4113ce661 100644 --- a/sysdeps/unix/sysv/linux/getsysstats.c +++ b/sysdeps/unix/sysv/linux/getsysstats.c @@ -57,7 +57,7 @@ get_proc_path (char *buffer, size_t bufsize) { while ((entry = __getmntent_r (fp, &mount_point, buffer, bufsize)) != NULL) - if (strcmp (mount_point.mnt_type, path_proc) == 0) + if (strcmp (mount_point.mnt_type, "proc") == 0) { result = mount_point.mnt_dir; break; @@ -78,7 +78,7 @@ get_proc_path (char *buffer, size_t bufsize) if (copy_result == NULL) return result; - /* Now strore the copied value. But do it atomically. */ + /* Now store the copied value. But do it atomically. */ assert (sizeof (long int) == sizeof (void *)); if (compare_and_swap ((long int *) &mount_proc, (long int) 0, (long int) copy_result) == 0) |