aboutsummaryrefslogtreecommitdiff
path: root/e2fsprogs/blkid
diff options
context:
space:
mode:
authorDenis Vlasenko <vda.linux@googlemail.com>2006-12-19 23:36:04 +0000
committerDenis Vlasenko <vda.linux@googlemail.com>2006-12-19 23:36:04 +0000
commitb95636c52fbb058a39548bcbc4e86456ebbd7b7b (patch)
tree0f82f8e3d225f3bcefdbf7070ae0716f1b309630 /e2fsprogs/blkid
parent2375d75f3267e6e4370f221fea485eac8e73d402 (diff)
downloadbusybox-w32-b95636c52fbb058a39548bcbc4e86456ebbd7b7b.tar.gz
busybox-w32-b95636c52fbb058a39548bcbc4e86456ebbd7b7b.tar.bz2
busybox-w32-b95636c52fbb058a39548bcbc4e86456ebbd7b7b.zip
remove casts from xmalloc()
Diffstat (limited to 'e2fsprogs/blkid')
-rw-r--r--e2fsprogs/blkid/probe.c4
1 files changed, 2 insertions, 2 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,
349 * pagesize). 349 * pagesize).
350 */ 350 */
351 if (lseek(fd, 1024, SEEK_SET) < 0) return 1; 351 if (lseek(fd, 1024, SEEK_SET) < 0) return 1;
352 sws = (struct swap_id_block *)xmalloc(1024); 352 sws = xmalloc(1024);
353 if (read(fd, sws, 1024) != 1024) { 353 if (read(fd, sws, 1024) != 1024) {
354 free(sws); 354 free(sws);
355 return 1; 355 return 1;
@@ -620,7 +620,7 @@ try_again:
620 if (lseek(fd, idx << 10, SEEK_SET) < 0) 620 if (lseek(fd, idx << 10, SEEK_SET) < 0)
621 continue; 621 continue;
622 622
623 buf = (unsigned char *)xmalloc(1024); 623 buf = xmalloc(1024);
624 624
625 if (read(fd, buf, 1024) != 1024) { 625 if (read(fd, buf, 1024) != 1024) {
626 free(buf); 626 free(buf);