Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.busybox.net/busybox.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDenis Vlasenko <vda.linux@googlemail.com>2006-12-20 02:36:04 +0300
committerDenis Vlasenko <vda.linux@googlemail.com>2006-12-20 02:36:04 +0300
commitb95636c52fbb058a39548bcbc4e86456ebbd7b7b (patch)
tree0f82f8e3d225f3bcefdbf7070ae0716f1b309630 /util-linux/fdisk.c
parent2375d75f3267e6e4370f221fea485eac8e73d402 (diff)
remove casts from xmalloc()
Diffstat (limited to 'util-linux/fdisk.c')
-rw-r--r--util-linux/fdisk.c2
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
read_pte(struct pte *pe, off_t offset)
{
pe->offset = offset;
- pe->sectorbuffer = (char *) xmalloc(sector_size);
+ pe->sectorbuffer = xmalloc(sector_size);
seek_sector(offset);
if (read(fd, pe->sectorbuffer, sector_size) != sector_size)
fdisk_fatal(unable_to_read);