From c461fe6377836b486ad6dc6a1558a63e7c32eaa1 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Mon, 29 Sep 2008 15:52:30 +0200 Subject: song: converted "type" to enum Having an enum type is much nicer than an anonymous integer plus CPP macros. Note that the old code didn't save any space by declaring the variable 8 bit, due to padding. --- src/song.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/song.c') diff --git a/src/song.c b/src/song.c index 943adfe73..3bd6fa52e 100644 --- a/src/song.c +++ b/src/song.c @@ -29,7 +29,7 @@ #include "os_compat.h" -Song *newSong(const char *url, int type, Directory * parentDir) +Song *newSong(const char *url, enum song_type type, Directory * parentDir) { Song *song; -- cgit v1.2.3