summaryrefslogtreecommitdiff
path: root/e2fsprogs/old_e2fsprogs/ext2fs
diff options
context:
space:
mode:
authorDenys Vlasenko2010-03-05 14:10:54 +0100
committerDenys Vlasenko2010-03-05 14:10:54 +0100
commit4b1100edd8180efa2e81860ef2fadeebcb21f5fa (patch)
tree84ae15d899f04dc8fdc16172446eb8e76a834d67 /e2fsprogs/old_e2fsprogs/ext2fs
parent44fbfa78ca6126d658ff48cef79e2f7d29fae6c8 (diff)
downloadbusybox-4b1100edd8180efa2e81860ef2fadeebcb21f5fa.zip
busybox-4b1100edd8180efa2e81860ef2fadeebcb21f5fa.tar.gz
*: use NULL for null pointers
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'e2fsprogs/old_e2fsprogs/ext2fs')
-rw-r--r--e2fsprogs/old_e2fsprogs/ext2fs/alloc.c2
-rw-r--r--e2fsprogs/old_e2fsprogs/ext2fs/bmap.c2
-rw-r--r--e2fsprogs/old_e2fsprogs/ext2fs/closefs.c4
-rw-r--r--e2fsprogs/old_e2fsprogs/ext2fs/dirblock.c2
-rw-r--r--e2fsprogs/old_e2fsprogs/ext2fs/ext_attr.c2
-rw-r--r--e2fsprogs/old_e2fsprogs/ext2fs/finddev.c4
-rw-r--r--e2fsprogs/old_e2fsprogs/ext2fs/imager.c2
-rw-r--r--e2fsprogs/old_e2fsprogs/ext2fs/mkdir.c2
-rw-r--r--e2fsprogs/old_e2fsprogs/ext2fs/mkjournal.c2
-rw-r--r--e2fsprogs/old_e2fsprogs/ext2fs/namei.c2
-rw-r--r--e2fsprogs/old_e2fsprogs/ext2fs/rw_bitmaps.c2
11 files changed, 13 insertions, 13 deletions
diff --git a/e2fsprogs/old_e2fsprogs/ext2fs/alloc.c b/e2fsprogs/old_e2fsprogs/ext2fs/alloc.c
index 590f23a..5021d72 100644
--- a/e2fsprogs/old_e2fsprogs/ext2fs/alloc.c
+++ b/e2fsprogs/old_e2fsprogs/ext2fs/alloc.c
@@ -109,7 +109,7 @@ errcode_t ext2fs_alloc_block(ext2_filsys fs, blk_t goal,
{
errcode_t retval;
blk_t block;
- char *buf = 0;
+ char *buf = NULL;
if (!block_buf) {
retval = ext2fs_get_mem(fs->blocksize, &buf);
diff --git a/e2fsprogs/old_e2fsprogs/ext2fs/bmap.c b/e2fsprogs/old_e2fsprogs/ext2fs/bmap.c
index b22fe3d..b2d0279 100644
--- a/e2fsprogs/old_e2fsprogs/ext2fs/bmap.c
+++ b/e2fsprogs/old_e2fsprogs/ext2fs/bmap.c
@@ -136,7 +136,7 @@ errcode_t ext2fs_bmap(ext2_filsys fs, ext2_ino_t ino, struct ext2_inode *inode,
struct ext2_inode inode_buf;
blk_t addr_per_block;
blk_t b;
- char *buf = 0;
+ char *buf = NULL;
errcode_t retval = 0;
int blocks_alloc = 0, inode_dirty = 0;
diff --git a/e2fsprogs/old_e2fsprogs/ext2fs/closefs.c b/e2fsprogs/old_e2fsprogs/ext2fs/closefs.c
index 008d5f3..7ba7f22 100644
--- a/e2fsprogs/old_e2fsprogs/ext2fs/closefs.c
+++ b/e2fsprogs/old_e2fsprogs/ext2fs/closefs.c
@@ -206,8 +206,8 @@ errcode_t ext2fs_flush(ext2_filsys fs)
blk_t group_block;
errcode_t retval;
unsigned long fs_state;
- struct ext2_super_block *super_shadow = 0;
- struct ext2_group_desc *group_shadow = 0;
+ struct ext2_super_block *super_shadow = NULL;
+ struct ext2_group_desc *group_shadow = NULL;
char *group_ptr;
int old_desc_blocks;
#if BB_BIG_ENDIAN
diff --git a/e2fsprogs/old_e2fsprogs/ext2fs/dirblock.c b/e2fsprogs/old_e2fsprogs/ext2fs/dirblock.c
index 5d3f6a1..f651338 100644
--- a/e2fsprogs/old_e2fsprogs/ext2fs/dirblock.c
+++ b/e2fsprogs/old_e2fsprogs/ext2fs/dirblock.c
@@ -80,7 +80,7 @@ errcode_t ext2fs_write_dir_block2(ext2_filsys fs, blk_t block,
int do_swap = 0;
errcode_t retval;
char *p, *end;
- char *buf = 0;
+ char *buf = NULL;
struct ext2_dir_entry *dirent;
if ((fs->flags & EXT2_FLAG_SWAP_BYTES) ||
diff --git a/e2fsprogs/old_e2fsprogs/ext2fs/ext_attr.c b/e2fsprogs/old_e2fsprogs/ext2fs/ext_attr.c
index 7ee41f2..a2ba12d 100644
--- a/e2fsprogs/old_e2fsprogs/ext2fs/ext_attr.c
+++ b/e2fsprogs/old_e2fsprogs/ext2fs/ext_attr.c
@@ -68,7 +68,7 @@ errcode_t ext2fs_adjust_ea_refcount(ext2_filsys fs, blk_t blk,
{
errcode_t retval;
struct ext2_ext_attr_header *header;
- char *buf = 0;
+ char *buf = NULL;
if ((blk >= fs->super->s_blocks_count) ||
(blk < fs->super->s_first_data_block))
diff --git a/e2fsprogs/old_e2fsprogs/ext2fs/finddev.c b/e2fsprogs/old_e2fsprogs/ext2fs/finddev.c
index 5e2cce9..e9e83fd 100644
--- a/e2fsprogs/old_e2fsprogs/ext2fs/finddev.c
+++ b/e2fsprogs/old_e2fsprogs/ext2fs/finddev.c
@@ -115,9 +115,9 @@ success:
*/
char *ext2fs_find_block_device(dev_t device)
{
- struct dir_list *list = 0, *new_list = 0;
+ struct dir_list *list = NULL, *new_list = NULL;
struct dir_list *current;
- char *ret_path = 0;
+ char *ret_path = NULL;
/*
* Add the starting directories to search...
diff --git a/e2fsprogs/old_e2fsprogs/ext2fs/imager.c b/e2fsprogs/old_e2fsprogs/ext2fs/imager.c
index e82321e..0f9cfcf 100644
--- a/e2fsprogs/old_e2fsprogs/ext2fs/imager.c
+++ b/e2fsprogs/old_e2fsprogs/ext2fs/imager.c
@@ -333,7 +333,7 @@ errout:
*/
errcode_t ext2fs_image_bitmap_read(ext2_filsys fs, int fd, int flags)
{
- char *ptr, *buf = 0;
+ char *ptr, *buf = NULL;
int size;
ssize_t actual;
errcode_t retval;
diff --git a/e2fsprogs/old_e2fsprogs/ext2fs/mkdir.c b/e2fsprogs/old_e2fsprogs/ext2fs/mkdir.c
index b63c5d7..93f47b0 100644
--- a/e2fsprogs/old_e2fsprogs/ext2fs/mkdir.c
+++ b/e2fsprogs/old_e2fsprogs/ext2fs/mkdir.c
@@ -39,7 +39,7 @@ errcode_t ext2fs_mkdir(ext2_filsys fs, ext2_ino_t parent, ext2_ino_t inum,
ext2_ino_t ino = inum;
ext2_ino_t scratch_ino;
blk_t blk;
- char *block = 0;
+ char *block = NULL;
EXT2_CHECK_MAGIC(fs, EXT2_ET_MAGIC_EXT2FS_FILSYS);
diff --git a/e2fsprogs/old_e2fsprogs/ext2fs/mkjournal.c b/e2fsprogs/old_e2fsprogs/ext2fs/mkjournal.c
index af47aee..db1c8bf 100644
--- a/e2fsprogs/old_e2fsprogs/ext2fs/mkjournal.c
+++ b/e2fsprogs/old_e2fsprogs/ext2fs/mkjournal.c
@@ -95,7 +95,7 @@ static errcode_t write_journal_file(ext2_filsys fs, char *filename,
blk_t size, int flags)
{
errcode_t retval;
- char *buf = 0;
+ char *buf = NULL;
int fd, ret_size;
blk_t i;
diff --git a/e2fsprogs/old_e2fsprogs/ext2fs/namei.c b/e2fsprogs/old_e2fsprogs/ext2fs/namei.c
index 4d4e378..14d48fb 100644
--- a/e2fsprogs/old_e2fsprogs/ext2fs/namei.c
+++ b/e2fsprogs/old_e2fsprogs/ext2fs/namei.c
@@ -30,7 +30,7 @@ static errcode_t follow_link(ext2_filsys fs, ext2_ino_t root, ext2_ino_t dir,
char *buf, ext2_ino_t *res_inode)
{
char *pathname;
- char *buffer = 0;
+ char *buffer = NULL;
errcode_t retval;
struct ext2_inode ei;
diff --git a/e2fsprogs/old_e2fsprogs/ext2fs/rw_bitmaps.c b/e2fsprogs/old_e2fsprogs/ext2fs/rw_bitmaps.c
index a5782db..0ae0a82 100644
--- a/e2fsprogs/old_e2fsprogs/ext2fs/rw_bitmaps.c
+++ b/e2fsprogs/old_e2fsprogs/ext2fs/rw_bitmaps.c
@@ -149,7 +149,7 @@ errcode_t ext2fs_write_block_bitmap (ext2_filsys fs)
static errcode_t read_bitmaps(ext2_filsys fs, int do_inode, int do_block)
{
dgrp_t i;
- char *block_bitmap = 0, *inode_bitmap = 0;
+ char *block_bitmap = NULL, *inode_bitmap = NULL;
char *buf;
errcode_t retval;
int block_nbytes = (int) EXT2_BLOCKS_PER_GROUP(fs->super) / 8;