summaryrefslogtreecommitdiffstats
path: root/sys/ufs
diff options
context:
space:
mode:
authoravg <avg@FreeBSD.org>2010-06-11 18:26:53 +0000
committeravg <avg@FreeBSD.org>2010-06-11 18:26:53 +0000
commit13985611ddbe4d46079001509c5c91112ec80a27 (patch)
treeb53437367867d1b636ebdcd012ff562384ebc138 /sys/ufs
parent09823b7fcbe08a8b4f1b989d1e66695c3d1c8a95 (diff)
downloadFreeBSD-src-13985611ddbe4d46079001509c5c91112ec80a27.zip
FreeBSD-src-13985611ddbe4d46079001509c5c91112ec80a27.tar.gz
ffs_softdep: change K&R in function defintions to ANSI prototypes
Apparently it's bad when we first have an ANSI prototype in function declaration, but then use K&R in its defintion. Complaint from: clang MFC after: 2 weeks
Diffstat (limited to 'sys/ufs')
-rw-r--r--sys/ufs/ffs/ffs_softdep.c25
1 files changed, 6 insertions, 19 deletions
diff --git a/sys/ufs/ffs/ffs_softdep.c b/sys/ufs/ffs/ffs_softdep.c
index 3a1edee..0a62000 100644
--- a/sys/ufs/ffs/ffs_softdep.c
+++ b/sys/ufs/ffs/ffs_softdep.c
@@ -3251,12 +3251,8 @@ newjmvref(dp, ino, oldoff, newoff)
* the jsegdep when we're done.
*/
static struct jremref *
-newjremref(dirrem, dp, ip, diroff, nlink)
- struct dirrem *dirrem;
- struct inode *dp;
- struct inode *ip;
- off_t diroff;
- nlink_t nlink;
+newjremref(struct dirrem *dirrem, struct inode *dp, struct inode *ip,
+ off_t diroff, nlink_t nlink)
{
struct jremref *jremref;
@@ -3271,13 +3267,8 @@ newjremref(dirrem, dp, ip, diroff, nlink)
}
static inline void
-newinoref(inoref, ino, parent, diroff, nlink, mode)
- struct inoref *inoref;
- ino_t ino;
- ino_t parent;
- off_t diroff;
- nlink_t nlink;
- uint16_t mode;
+newinoref(struct inoref *inoref, ino_t ino, ino_t parent, off_t diroff,
+ nlink_t nlink, uint16_t mode)
{
inoref->if_jsegdep = newjsegdep(&inoref->if_list);
@@ -3296,12 +3287,8 @@ newinoref(inoref, ino, parent, diroff, nlink, mode)
* to have the correct FMT.
*/
static struct jaddref *
-newjaddref(dp, ino, diroff, nlink, mode)
- struct inode *dp;
- ino_t ino;
- off_t diroff;
- int16_t nlink;
- uint16_t mode;
+newjaddref(struct inode *dp, ino_t ino, off_t diroff, int16_t nlink,
+ uint16_t mode)
{
struct jaddref *jaddref;
OpenPOWER on IntegriCloud