diff options
| author | pooka <pooka@NetBSD.org> | 2012-09-13 13:59:33 +0000 |
|---|---|---|
| committer | pooka <pooka@NetBSD.org> | 2012-09-13 13:59:33 +0000 |
| commit | e01c2439d9d20856128a79e77fa6d032aeebe72a (patch) | |
| tree | 8fdff929d011a20d4973c7e06fb043c4fb8a622c /sys/compat/linux/common/linux_statfs.h | |
| parent | cef7e67a70b644c35be792195b239ddf8b6a8a86 (diff) | |
Rename structure members to make the code compile in environments
where "linux" is #defined.
Diffstat (limited to 'sys/compat/linux/common/linux_statfs.h')
| -rw-r--r-- | sys/compat/linux/common/linux_statfs.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/sys/compat/linux/common/linux_statfs.h b/sys/compat/linux/common/linux_statfs.h index 1debfe54084..ea66542366f 100644 --- a/sys/compat/linux/common/linux_statfs.h +++ b/sys/compat/linux/common/linux_statfs.h @@ -1,4 +1,4 @@ -/* $NetBSD: linux_statfs.h,v 1.5 2010/11/02 18:14:05 chs Exp $ */ +/* $NetBSD: linux_statfs.h,v 1.6 2012/09/13 13:59:33 pooka Exp $ */ /*- * Copyright (c) 1995, 1998, 1999 The NetBSD Foundation, Inc. @@ -49,8 +49,8 @@ bsd_to_linux_statfs(const struct statvfs *bsp, struct linux_statfs *lsp) int i; for (i = 0; i < linux_fstypes_cnt; i++) { - if (strcmp(bsp->f_fstypename, linux_fstypes[i].bsd) == 0) { - lsp->l_ftype = linux_fstypes[i].linux; + if (strcmp(bsp->f_fstypename, linux_fstypes[i].mty_bsd) == 0) { + lsp->l_ftype = linux_fstypes[i].mty_linux; break; } } @@ -97,8 +97,8 @@ bsd_to_linux_statfs64(const struct statvfs *bsp, struct linux_statfs64 *lsp) int i, div; for (i = 0; i < linux_fstypes_cnt; i++) { - if (strcmp(bsp->f_fstypename, linux_fstypes[i].bsd) == 0) { - lsp->l_ftype = linux_fstypes[i].linux; + if (strcmp(bsp->f_fstypename, linux_fstypes[i].mty_bsd) == 0) { + lsp->l_ftype = linux_fstypes[i].mty_linux; break; } } |
