~csurbhi/ubuntu/maverick/e2fsprogs/e2fsprogs.fix-505719

« back to all changes in this revision

Viewing changes to lib/ext2fs/alloc.c

  • Committer: Bazaar Package Importer
  • Author(s): Matt Zimmerman
  • Date: 2004-09-19 09:43:14 UTC
  • mto: (8.1.1 lenny) (1.2.3 upstream)
  • mto: This revision was merged to the branch mainline in revision 3.
  • Revision ID: james.westby@ubuntu.com-20040919094314-2tafd19i76fhu6ei
Tags: upstream-1.35
ImportĀ upstreamĀ versionĀ 1.35

Show diffs side-by-side

added added

removed removed

Lines of Context:
32
32
 *
33
33
 * Should have a special policy for directories.
34
34
 */
35
 
errcode_t ext2fs_new_inode(ext2_filsys fs, ext2_ino_t dir, int mode,
 
35
errcode_t ext2fs_new_inode(ext2_filsys fs, ext2_ino_t dir, 
 
36
                           int mode EXT2FS_ATTR((unused)),
36
37
                           ext2fs_inode_bitmap map, ext2_ino_t *ret)
37
38
{
38
39
        ext2_ino_t      dir_group = 0;
110
111
        char            *buf = 0;
111
112
 
112
113
        if (!block_buf) {
113
 
                retval = ext2fs_get_mem(fs->blocksize, (void **) &buf);
 
114
                retval = ext2fs_get_mem(fs->blocksize, &buf);
114
115
                if (retval)
115
116
                        return retval;
116
117
                block_buf = buf;
137
138
 
138
139
fail:
139
140
        if (buf)
140
 
                ext2fs_free_mem((void **) &buf);
 
141
                ext2fs_free_mem(&buf);
141
142
        return retval;
142
143
}
143
144