summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Christian Hesse <mail@eworm.de>2013-04-17 09:45:16 +0200
committerGravatar Christian Hesse <mail@eworm.de>2013-04-17 09:45:16 +0200
commitf6e340cb6755235585f738d6ffb4f02a4c000139 (patch)
tree8f59bd4c8488c8a32267ac5e5b508e17c4057ae5
parent0bbbe443158b1a2fa81b442c27e93390aa7b2b5b (diff)
downloadmpd-notification-f6e340cb6755235585f738d6ffb4f02a4c000139.tar.gz
mpd-notification-f6e340cb6755235585f738d6ffb4f02a4c000139.tar.zst
remove useless cast
-rw-r--r--mpd-notification.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/mpd-notification.c b/mpd-notification.c
index 6fb9921..dbdefb3 100644
--- a/mpd-notification.c
+++ b/mpd-notification.c
@@ -73,7 +73,7 @@ int main(int argc, char ** argv) {
if ((album = g_markup_escape_text(mpd_song_get_tag(song, MPD_TAG_ALBUM, 0), -1)) == NULL)
album = TEXT_UNKNOWN;
- notifystr = (char *) malloc(strlen(TEXT_PLAY) + strlen(title) + strlen(artist) + strlen(album));
+ notifystr = malloc(strlen(TEXT_PLAY) + strlen(title) + strlen(artist) + strlen(album));
sprintf(notifystr, TEXT_PLAY, title, artist, album);
mpd_song_free(song);