summaryrefslogtreecommitdiffstats
path: root/get_path.c
diff options
context:
space:
mode:
authorreimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2>2007-07-19 13:52:39 +0000
committerreimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2>2007-07-19 13:52:39 +0000
commite607c7289f5fa7487f810eff2f1e71970cf0645b (patch)
treea527ed50daef75535706d0f8410fc32a60a73d70 /get_path.c
parent7de92dc41c3a1c9ff9b3a0f0b928f696768170c5 (diff)
downloadmpv-e607c7289f5fa7487f810eff2f1e71970cf0645b.tar.bz2
mpv-e607c7289f5fa7487f810eff2f1e71970cf0645b.tar.xz
Remove some more useless *alloc casts
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@23826 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'get_path.c')
-rw-r--r--get_path.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/get_path.c b/get_path.c
index 679b0632ed..f40580f1f9 100644
--- a/get_path.c
+++ b/get_path.c
@@ -53,12 +53,12 @@ char *get_path(const char *filename){
#endif
len = strlen(homedir) + strlen(config_dir) + 1;
if (filename == NULL) {
- if ((buff = (char *) malloc(len)) == NULL)
+ if ((buff = malloc(len)) == NULL)
return NULL;
sprintf(buff, "%s%s", homedir, config_dir);
} else {
len += strlen(filename) + 1;
- if ((buff = (char *) malloc(len)) == NULL)
+ if ((buff = malloc(len)) == NULL)
return NULL;
sprintf(buff, "%s%s/%s", homedir, config_dir, filename);
}
@@ -95,7 +95,7 @@ char *get_path(const char *filename){
maxlen=strlen(filename)+strlen(res_url_path)+2;
}
free(buff);
- buff = (char *) malloc(maxlen);
+ buff = malloc(maxlen);
strcpy(buff, res_url_path);
strcat(buff,"/");