diff options
author | vda <vda@69ca8d6d-28ef-0310-b511-8ec308f3f277> | 2006-12-19 23:36:04 +0000 |
---|---|---|
committer | vda <vda@69ca8d6d-28ef-0310-b511-8ec308f3f277> | 2006-12-19 23:36:04 +0000 |
commit | 054e71820ce24b47f88465bb95c303d558355a91 (patch) | |
tree | 0f82f8e3d225f3bcefdbf7070ae0716f1b309630 /util-linux | |
parent | eded4f7a23932a878ae06ba41964411299db5efb (diff) | |
download | busybox-w32-054e71820ce24b47f88465bb95c303d558355a91.tar.gz busybox-w32-054e71820ce24b47f88465bb95c303d558355a91.tar.bz2 busybox-w32-054e71820ce24b47f88465bb95c303d558355a91.zip |
remove casts from xmalloc()
git-svn-id: svn://busybox.net/trunk/busybox@17011 69ca8d6d-28ef-0310-b511-8ec308f3f277
Diffstat (limited to 'util-linux')
-rw-r--r-- | util-linux/fdisk.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/util-linux/fdisk.c b/util-linux/fdisk.c index e4f7e5455..84538af99 100644 --- a/util-linux/fdisk.c +++ b/util-linux/fdisk.c | |||
@@ -680,7 +680,7 @@ static void | |||
680 | read_pte(struct pte *pe, off_t offset) | 680 | read_pte(struct pte *pe, off_t offset) |
681 | { | 681 | { |
682 | pe->offset = offset; | 682 | pe->offset = offset; |
683 | pe->sectorbuffer = (char *) xmalloc(sector_size); | 683 | pe->sectorbuffer = xmalloc(sector_size); |
684 | seek_sector(offset); | 684 | seek_sector(offset); |
685 | if (read(fd, pe->sectorbuffer, sector_size) != sector_size) | 685 | if (read(fd, pe->sectorbuffer, sector_size) != sector_size) |
686 | fdisk_fatal(unable_to_read); | 686 | fdisk_fatal(unable_to_read); |