From f908ac5c6e119b1a2dab329c1177ceeae5d937be Mon Sep 17 00:00:00 2001 From: pfg Date: Fri, 8 Feb 2013 20:30:19 +0000 Subject: Remove unused MAXSYMLINKLEN macro. Reviewed by: mckusick PR: kern/175794 MFC after: 1 week --- sys/fs/ext2fs/inode.h | 1 - sys/ufs/ufs/inode.h | 4 ---- 2 files changed, 5 deletions(-) (limited to 'sys') diff --git a/sys/fs/ext2fs/inode.h b/sys/fs/ext2fs/inode.h index ec47216..6cb85ca 100644 --- a/sys/fs/ext2fs/inode.h +++ b/sys/fs/ext2fs/inode.h @@ -108,7 +108,6 @@ struct inode { */ #define i_shortlink i_db #define i_rdev i_db[0] -#define MAXSYMLINKLEN ((NDADDR + NIADDR) * sizeof(int32_t)) /* File permissions. */ #define IEXEC 0000100 /* Executable. */ diff --git a/sys/ufs/ufs/inode.h b/sys/ufs/ufs/inode.h index 59b170c..6416632 100644 --- a/sys/ufs/ufs/inode.h +++ b/sys/ufs/ufs/inode.h @@ -151,10 +151,6 @@ struct inode { (ip)->i_din2->d##field = (val); \ } while (0) -#define MAXSYMLINKLEN(ip) \ - ((ip)->i_ump->um_fstype == UFS1) ? \ - ((NDADDR + NIADDR) * sizeof(ufs1_daddr_t)) : \ - ((NDADDR + NIADDR) * sizeof(ufs2_daddr_t)) #define SHORTLINK(ip) \ (((ip)->i_ump->um_fstype == UFS1) ? \ (caddr_t)(ip)->i_din1->di_db : (caddr_t)(ip)->i_din2->di_db) -- cgit v1.1