diff options
author | araujo <araujo@FreeBSD.org> | 2016-05-02 01:28:21 +0000 |
---|---|---|
committer | araujo <araujo@FreeBSD.org> | 2016-05-02 01:28:21 +0000 |
commit | 8a968685105e16520e1612b4503384c7dacbbb8c (patch) | |
tree | 7b2e150cc289c8c0f3c605784a4b9dabb327c125 /sbin/fsck_ffs/setup.c | |
parent | 9a4a264bb0c904805d0e914655b3a1d6b4852705 (diff) | |
download | FreeBSD-src-8a968685105e16520e1612b4503384c7dacbbb8c.zip FreeBSD-src-8a968685105e16520e1612b4503384c7dacbbb8c.tar.gz |
Use MIN/MAX macros from sys/param.h.
MFC after: 2 weeks.
Diffstat (limited to 'sbin/fsck_ffs/setup.c')
-rw-r--r-- | sbin/fsck_ffs/setup.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/sbin/fsck_ffs/setup.c b/sbin/fsck_ffs/setup.c index 494e503..ff7e9ef 100644 --- a/sbin/fsck_ffs/setup.c +++ b/sbin/fsck_ffs/setup.c @@ -245,8 +245,7 @@ setup(char *dev) goto badsb; } for (i = 0, j = 0; i < sblock.fs_cssize; i += sblock.fs_bsize, j++) { - size = sblock.fs_cssize - i < sblock.fs_bsize ? - sblock.fs_cssize - i : sblock.fs_bsize; + size = MIN(sblock.fs_cssize - i, sblock.fs_bsize); readcnt[sblk.b_type]++; if (blread(fsreadfd, (char *)sblock.fs_csp + i, fsbtodb(&sblock, sblock.fs_csaddr + j * sblock.fs_frag), |