diff options
author | Theodore Ts'o <tytso@mit.edu> | 1997-08-10 23:07:40 +0000 |
---|---|---|
committer | Theodore Ts'o <tytso@mit.edu> | 1997-08-10 23:07:40 +0000 |
commit | 4cbe8af4b0d0c72fb28bb500c1bd8a46b00fdde3 (patch) | |
tree | ad7f47af97b5e18f820fdbef20bb576cc6aadb04 /lib/ext2fs/alloc.c | |
parent | a47b66ee09960a8bf00e72b431ec56d68e11a301 (diff) | |
download | e2fsprogs-4cbe8af4b0d0c72fb28bb500c1bd8a46b00fdde3.tar.gz |
Many files:
block.c (ext2fs_block_iterate2): Use retval which is a errcode_t type.
bitmaps.c (make_bitmap): Use size_t instead of int where appropriate.
bb_inode.c (set_bad_block_proc): Add #pragma argsused for Turbo C.
alloc.c (ext2fs_new_inode): Use ino_t instead of int for the group number.
get_pathname.c: Use ino_t instead of int where appropriate.
ext2fs.h: Make the magic structure element be errcode_t instead of int.
alloc.c alloc_tables.c badblocks.c bb_compat.c bb_inode.c
bitmaps.c block.c bmove.c brel_ma.c check_desc.c closefs.c
cmp_bitmaps.c dblist.c dblist_dir.c dir_iterate.c dirblock.c
dupfs.c expanddir.c freefs.c get_pathname.c icount.c
initialize.c inline.c inode.c irel_ma.c link.c llseek.c
lookup.c mkdir.c namei.c newdir.c read_bb.c read_bb_file.c
rs_bitmap.c rw_bitmaps.c swapfs.c test_io.c tst_badblocks.c
tst_iscan.c unix_io.c unlink.c valid_blk.c version.c: Add an
#ifdef for HAVE_UNISTD_H
Diffstat (limited to 'lib/ext2fs/alloc.c')
-rw-r--r-- | lib/ext2fs/alloc.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/ext2fs/alloc.c b/lib/ext2fs/alloc.c index 50cee77c..308e3534 100644 --- a/lib/ext2fs/alloc.c +++ b/lib/ext2fs/alloc.c @@ -11,7 +11,9 @@ */ #include <stdio.h> +#if HAVE_UNISTD_H #include <unistd.h> +#endif #include <stdlib.h> #include <time.h> #include <sys/stat.h> @@ -33,7 +35,7 @@ errcode_t ext2fs_new_inode(ext2_filsys fs, ino_t dir, int mode, ext2fs_inode_bitmap map, ino_t *ret) { - int dir_group = 0; + ino_t dir_group = 0; ino_t i; ino_t start_inode; |