aboutsummaryrefslogtreecommitdiff
path: root/e2fsprogs
diff options
context:
space:
mode:
Diffstat (limited to 'e2fsprogs')
-rw-r--r--e2fsprogs/blkid/probe.c4
-rw-r--r--e2fsprogs/e2p/iod.c2
2 files changed, 3 insertions, 3 deletions
diff --git a/e2fsprogs/blkid/probe.c b/e2fsprogs/blkid/probe.c
index ea9a619ee..8c6e2aa33 100644
--- a/e2fsprogs/blkid/probe.c
+++ b/e2fsprogs/blkid/probe.c
@@ -349,7 +349,7 @@ static int probe_swap1(int fd,
* pagesize).
*/
if (lseek(fd, 1024, SEEK_SET) < 0) return 1;
- sws = (struct swap_id_block *)xmalloc(1024);
+ sws = xmalloc(1024);
if (read(fd, sws, 1024) != 1024) {
free(sws);
return 1;
@@ -620,7 +620,7 @@ try_again:
if (lseek(fd, idx << 10, SEEK_SET) < 0)
continue;
- buf = (unsigned char *)xmalloc(1024);
+ buf = xmalloc(1024);
if (read(fd, buf, 1024) != 1024) {
free(buf);
diff --git a/e2fsprogs/e2p/iod.c b/e2fsprogs/e2p/iod.c
index 8d4c5cdcb..23ab8d5b5 100644
--- a/e2fsprogs/e2p/iod.c
+++ b/e2fsprogs/e2p/iod.c
@@ -29,7 +29,7 @@ int iterate_on_dir (const char * dir_name,
int max_len, len;
max_len = PATH_MAX + sizeof(struct dirent);
- de = (struct dirent *)xmalloc(max_len+1);
+ de = xmalloc(max_len+1);
memset(de, 0, max_len+1);
dir = opendir (dir_name);