aboutsummaryrefslogtreecommitdiff
path: root/stand/libsa/ufs.c
diff options
context:
space:
mode:
authorEd Maste <emaste@FreeBSD.org>2018-03-17 01:48:27 +0000
committerEd Maste <emaste@FreeBSD.org>2018-03-17 01:48:27 +0000
commit1e2b9afca9212aa3d6f9cfc02c54f739a7c7c035 (patch)
tree2a7d490a37367cf95935a2bb7b8dd3cc1a778737 /stand/libsa/ufs.c
parent4e78ff7068e13cb32b4165fe362f8ddf81160031 (diff)
downloadsrc-1e2b9afca9212aa3d6f9cfc02c54f739a7c7c035.tar.gz
src-1e2b9afca9212aa3d6f9cfc02c54f739a7c7c035.zip
Prefix UFS symbols with UFS_ to reduce namespace pollution
Followup to r313780. Also prefix ext2's and nandfs's versions with EXT2_ and NANDFS_. Reported by: kib Reviewed by: kib, mckusick Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D9623
Notes
Notes: svn path=/head/; revision=331083
Diffstat (limited to 'stand/libsa/ufs.c')
-rw-r--r--stand/libsa/ufs.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/stand/libsa/ufs.c b/stand/libsa/ufs.c
index 2cad803e3c73..60d13e0be4d8 100644
--- a/stand/libsa/ufs.c
+++ b/stand/libsa/ufs.c
@@ -557,7 +557,7 @@ ufs_open(upath, f)
/*
* Check that current node is a directory.
*/
- if ((DIP(fp, di_mode) & IFMT) != IFDIR) {
+ if ((DIP(fp, di_mode) & UFS_IFMT) != UFS_IFDIR) {
rc = ENOTDIR;
goto out;
}
@@ -599,7 +599,7 @@ ufs_open(upath, f)
/*
* Check for symbolic link.
*/
- if ((DIP(fp, di_mode) & IFMT) == IFLNK) {
+ if ((DIP(fp, di_mode) & UFS_IFMT) == UFS_IFLNK) {
int link_len = DIP(fp, di_size);
int len;