diff options
author | Alan Coopersmith <alan.coopersmith@oracle.com> | 2014-07-05 12:04:11 -0700 |
---|---|---|
committer | Alan Coopersmith <alan.coopersmith@oracle.com> | 2014-07-05 12:05:57 -0700 |
commit | e254f9e0ec8953ce02043642021a7307512c57be (patch) | |
tree | db82a90396094e79609c6b44de9af72b828aeac7 /fslsfonts.c | |
parent | 44a450461b6361d691c360438af21fa3be21c408 (diff) |
Remove unnecessary casts on malloc/realloc return values
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
Diffstat (limited to 'fslsfonts.c')
-rw-r--r-- | fslsfonts.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/fslsfonts.c b/fslsfonts.c index 48d077d..08a7b3a 100644 --- a/fslsfonts.c +++ b/fslsfonts.c @@ -265,11 +265,11 @@ get_list(const char *pattern) return; } if (font_list) - font_list = (FontList *) realloc(font_list, - (font_cnt + available) * sizeof(FontList)); + font_list = realloc(font_list, + (font_cnt + available) * sizeof(FontList)); else - font_list = (FontList *) malloc((unsigned) - (font_cnt + available) * sizeof(FontList)); + font_list = malloc((unsigned) + (font_cnt + available) * sizeof(FontList)); if (font_list == NULL) { fprintf(stderr, "%s: unable to allocate %zu bytes for font list\n", program_name, (font_cnt + available) * sizeof(FontList)); |