diff options
author | bde <bde@FreeBSD.org> | 1997-03-12 16:58:35 +0000 |
---|---|---|
committer | bde <bde@FreeBSD.org> | 1997-03-12 16:58:35 +0000 |
commit | a54018968d85828ef88c44cb6bc3ff37b5ed9449 (patch) | |
tree | ad30508c3634fe7a9ac6ccea0735bfc58a5ba998 /sbin/fsck/pass1.c | |
parent | 3059cc3c4cb8f649bf74ab86de248fa8239335d0 (diff) | |
download | FreeBSD-src-a54018968d85828ef88c44cb6bc3ff37b5ed9449.zip FreeBSD-src-a54018968d85828ef88c44cb6bc3ff37b5ed9449.tar.gz |
Finished (?) merging with Lite2: cleaned up #include mess.
Fixed style bugs in FreeBSD changes.
Diffstat (limited to 'sbin/fsck/pass1.c')
-rw-r--r-- | sbin/fsck/pass1.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/sbin/fsck/pass1.c b/sbin/fsck/pass1.c index 0114c5e..2e34a96 100644 --- a/sbin/fsck/pass1.c +++ b/sbin/fsck/pass1.c @@ -42,8 +42,6 @@ static const char sccsid[] = "@(#)pass1.c 8.6 (Berkeley) 4/28/95"; #include <ufs/ufs/dir.h> #include <ufs/ffs/fs.h> -#include <stdio.h> -#include <stdlib.h> #include <err.h> #include <string.h> @@ -168,7 +166,8 @@ checkinode(inumber, idesc) * Fake ndb value so direct/indirect block checks below * will detect any garbage after symlink string. */ - if ((dp->di_size < sblock.fs_maxsymlinklen) || dp->di_blocks == 0) { + if (dp->di_size < sblock.fs_maxsymlinklen || + dp->di_blocks == 0) { ndb = howmany(dp->di_size, sizeof(ufs_daddr_t)); if (ndb > NDADDR) { j = ndb - NDADDR; |