diff options
author | Denys Vlasenko | 2010-03-05 14:10:54 +0100 |
---|---|---|
committer | Denys Vlasenko | 2010-03-05 14:10:54 +0100 |
commit | 4b1100edd8180efa2e81860ef2fadeebcb21f5fa (patch) | |
tree | 84ae15d899f04dc8fdc16172446eb8e76a834d67 /e2fsprogs/old_e2fsprogs/blkid/probe.c | |
parent | 44fbfa78ca6126d658ff48cef79e2f7d29fae6c8 (diff) | |
download | busybox-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/blkid/probe.c')
-rw-r--r-- | e2fsprogs/old_e2fsprogs/blkid/probe.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/e2fsprogs/old_e2fsprogs/blkid/probe.c b/e2fsprogs/old_e2fsprogs/blkid/probe.c index 1f7188e..77bfc73 100644 --- a/e2fsprogs/old_e2fsprogs/blkid/probe.c +++ b/e2fsprogs/old_e2fsprogs/blkid/probe.c @@ -82,7 +82,7 @@ static void set_uuid(blkid_dev dev, uuid_t uuid) static void get_ext2_info(blkid_dev dev, unsigned char *buf) { struct ext2_super_block *es = (struct ext2_super_block *) buf; - const char *label = 0; + const char *label = NULL; DBG(DEBUG_PROBE, printf("ext2_sb.compat = %08X:%08X:%08X\n", blkid_le32(es->s_feature_compat), @@ -168,7 +168,7 @@ static int probe_vfat(int fd __BLKID_ATTR((unused)), { struct vfat_super_block *vs; char serno[10]; - const char *label = 0; + const char *label = NULL; int label_len = 0; vs = (struct vfat_super_block *)buf; @@ -201,7 +201,7 @@ static int probe_msdos(int fd __BLKID_ATTR((unused)), { struct msdos_super_block *ms = (struct msdos_super_block *) buf; char serno[10]; - const char *label = 0; + const char *label = NULL; int label_len = 0; if (strncmp(ms->ms_label, "NO NAME", 7)) { @@ -232,7 +232,7 @@ static int probe_xfs(int fd __BLKID_ATTR((unused)), unsigned char *buf) { struct xfs_super_block *xs; - const char *label = 0; + const char *label = NULL; xs = (struct xfs_super_block *)buf; @@ -250,7 +250,7 @@ static int probe_reiserfs(int fd __BLKID_ATTR((unused)), { struct reiserfs_super_block *rs = (struct reiserfs_super_block *) buf; unsigned int blocksize; - const char *label = 0; + const char *label = NULL; blocksize = blkid_le16(rs->rs_blocksize); @@ -277,7 +277,7 @@ static int probe_jfs(int fd __BLKID_ATTR((unused)), unsigned char *buf) { struct jfs_super_block *js; - const char *label = 0; + const char *label = NULL; js = (struct jfs_super_block *)buf; @@ -295,7 +295,7 @@ static int probe_romfs(int fd __BLKID_ATTR((unused)), unsigned char *buf) { struct romfs_super_block *ros; - const char *label = 0; + const char *label = NULL; ros = (struct romfs_super_block *)buf; @@ -312,7 +312,7 @@ static int probe_cramfs(int fd __BLKID_ATTR((unused)), unsigned char *buf) { struct cramfs_super_block *csb; - const char *label = 0; + const char *label = NULL; csb = (struct cramfs_super_block *)buf; |