diff options
author | reimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2007-07-19 13:52:39 +0000 |
---|---|---|
committer | reimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2007-07-19 13:52:39 +0000 |
commit | e607c7289f5fa7487f810eff2f1e71970cf0645b (patch) | |
tree | a527ed50daef75535706d0f8410fc32a60a73d70 /codec-cfg.c | |
parent | 7de92dc41c3a1c9ff9b3a0f0b928f696768170c5 (diff) |
Remove some more useless *alloc casts
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@23826 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'codec-cfg.c')
-rw-r--r-- | codec-cfg.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/codec-cfg.c b/codec-cfg.c index 4a373a5fef..73bff8bb0c 100644 --- a/codec-cfg.c +++ b/codec-cfg.c @@ -378,7 +378,7 @@ static int add_comment(char *s, char **d) pos = strlen(*d); (*d)[pos++] = '\n'; } - if (!(*d = (char *) realloc(*d, pos + strlen(s) + 1))) { + if (!(*d = realloc(*d, pos + strlen(s) + 1))) { mp_msg(MSGT_CODECCFG,MSGL_FATAL,MSGTR_CantAllocateComment); return 0; } @@ -519,7 +519,7 @@ int parse_codec_cfg(const char *cfgfile) return 0; } - if ((line = (char *) malloc(MAX_LINE_LEN + 1)) == NULL) { + if ((line = malloc(MAX_LINE_LEN + 1)) == NULL) { mp_msg(MSGT_CODECCFG,MSGL_FATAL,MSGTR_CantGetMemoryForLine, strerror(errno)); return 0; } @@ -576,7 +576,7 @@ int parse_codec_cfg(const char *cfgfile) goto err_out; #endif } - if (!(*codecsp = (codecs_t *) realloc(*codecsp, + if (!(*codecsp = realloc(*codecsp, sizeof(codecs_t) * (*nr_codecsp + 2)))) { mp_msg(MSGT_CODECCFG,MSGL_FATAL,MSGTR_CantReallocCodecsp, strerror(errno)); goto err_out; |