aboutsummaryrefslogtreecommitdiff
path: root/toys/toysh.c
diff options
context:
space:
mode:
authorRob Landley <rob@landley.net>2007-04-29 19:55:21 -0400
committerRob Landley <rob@landley.net>2007-04-29 19:55:21 -0400
commit0c93f6c7ab7aab56b39793a2317a9bff16b8ae04 (patch)
tree275dcaf29f05b6f15cf87327746d6e3c3d07e5ac /toys/toysh.c
parentc92fde0bc75ade9d06c0d843c4693b9e2e338938 (diff)
downloadtoybox-0c93f6c7ab7aab56b39793a2317a9bff16b8ae04.tar.gz
Add readlink, xreadlink(), and change xrealloc() to not fight the stupid
compiler so much.
Diffstat (limited to 'toys/toysh.c')
-rw-r--r--toys/toysh.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/toys/toysh.c b/toys/toysh.c
index c383b89a..ef061bde 100644
--- a/toys/toysh.c
+++ b/toys/toysh.c
@@ -61,7 +61,7 @@ static char *parse_word(char *start, struct command **cmd)
// Allocate more space if there's no room for NULL terminator.
if (!((*cmd)->argc & 7))
- xrealloc((void **)cmd,
+ *cmd=xrealloc(*cmd,
sizeof(struct command) + ((*cmd)->argc+8)*sizeof(char *));
(*cmd)->argv[(*cmd)->argc] = 0;
return end;