diff options
author | Denis Vlasenko | 2006-12-19 23:36:04 +0000 |
---|---|---|
committer | Denis Vlasenko | 2006-12-19 23:36:04 +0000 |
commit | b95636c52fbb058a39548bcbc4e86456ebbd7b7b (patch) | |
tree | 0f82f8e3d225f3bcefdbf7070ae0716f1b309630 /libbb | |
parent | 2375d75f3267e6e4370f221fea485eac8e73d402 (diff) | |
download | busybox-b95636c52fbb058a39548bcbc4e86456ebbd7b7b.zip busybox-b95636c52fbb058a39548bcbc4e86456ebbd7b7b.tar.gz |
remove casts from xmalloc()
Diffstat (limited to 'libbb')
-rw-r--r-- | libbb/dump.c | 4 | ||||
-rw-r--r-- | libbb/inet_common.c | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/libbb/dump.c b/libbb/dump.c index 1071089..d6e31b9 100644 --- a/libbb/dump.c +++ b/libbb/dump.c @@ -358,8 +358,8 @@ static unsigned char *get(void) if (!curp) { address = (off_t)0; /*DBU:[dave@cray.com] initialize,initialize..*/ - curp = (unsigned char *) xmalloc(bb_dump_blocksize); - savp = (unsigned char *) xmalloc(bb_dump_blocksize); + curp = xmalloc(bb_dump_blocksize); + savp = xmalloc(bb_dump_blocksize); } else { tmpp = curp; curp = savp; diff --git a/libbb/inet_common.c b/libbb/inet_common.c index d8e0035..9cdcb11 100644 --- a/libbb/inet_common.c +++ b/libbb/inet_common.c @@ -158,7 +158,7 @@ int INET_rresolve(char *name, size_t len, struct sockaddr_in *s_in, if ((ent == NULL) && (np == NULL)) { safe_strncpy(name, inet_ntoa(s_in->sin_addr), len); } - pn = (struct addr *) xmalloc(sizeof(struct addr)); + pn = xmalloc(sizeof(struct addr)); pn->addr = *s_in; pn->next = INET_nn; pn->host = host; |