diff options
author | Max Kellermann <max@duempel.org> | 2008-09-29 15:52:30 +0200 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2008-09-29 15:52:30 +0200 |
commit | 35d519625d1748e00f05fa66252c938c1cd2c5d8 (patch) | |
tree | a02a89a1182fdfad618fe728c2e4d48932982614 /src/song.c | |
parent | e8e94382554320c078397a3c053be4fb2f31baeb (diff) | |
download | mpd-35d519625d1748e00f05fa66252c938c1cd2c5d8.tar.gz mpd-35d519625d1748e00f05fa66252c938c1cd2c5d8.tar.xz mpd-35d519625d1748e00f05fa66252c938c1cd2c5d8.zip |
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.
Diffstat (limited to '')
-rw-r--r-- | src/song.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/song.c b/src/song.c index 789e1cf1a..096b1afbd 100644 --- a/src/song.c +++ b/src/song.c @@ -40,7 +40,7 @@ Song *newNullSong(void) return song; } -Song *newSong(const char *url, int type, Directory * parentDir) +Song *newSong(const char *url, enum song_type type, Directory * parentDir) { Song *song; |