diff options
author | Jérémie Courrèges-Anglas <jca@wxcvbn.org> | 2014-01-03 22:40:46 +0100 |
---|---|---|
committer | Jérémie Courrèges-Anglas <jca@wxcvbn.org> | 2014-01-03 23:06:32 +0100 |
commit | e5b64c4f193eb01c81b93ec6e27d6d6bddbfd78b (patch) | |
tree | b26feea94df2d060c7151ff5a2fe865b634c974e /src/sbuf.c | |
parent | b8d5ca85d9a6e6f42b8dbd6d47cab7bbcffeea90 (diff) | |
download | ratpoison-e5b64c4f193eb01c81b93ec6e27d6d6bddbfd78b.zip |
Get rid of useless casts of xmalloc/realloc return value.
Diffstat (limited to 'src/sbuf.c')
-rw-r--r-- | src/sbuf.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -27,12 +27,12 @@ struct sbuf * sbuf_new (size_t initsz) { - struct sbuf *b = (struct sbuf*) xmalloc (sizeof (struct sbuf)); + struct sbuf *b = xmalloc (sizeof (struct sbuf)); if (initsz < 1) initsz = 1; - b->data = (char*) xmalloc (initsz); + b->data = xmalloc (initsz); b->maxsz = initsz; b->data[0] = '\0'; @@ -73,7 +73,7 @@ sbuf_nconcat (struct sbuf *b, const char *str, int len) if (b->maxsz < minsz) { - b->data = (char*) xrealloc (b->data, minsz); + b->data = xrealloc (b->data, minsz); b->maxsz = minsz; } |