diff options
author | Max Kellermann <max@duempel.org> | 2008-10-06 18:48:45 +0200 |
---|---|---|
committer | Eric Wong <normalperson@yhbt.net> | 2008-10-11 19:21:46 -0700 |
commit | b843ae1dde619605a318002b2c2326a9cce380f0 (patch) | |
tree | 741d64f8071a2621118da41e52e27b27c0f12522 /src/song.h | |
parent | c95334b2095e57e900e2c09e858b86f78a5bdb06 (diff) | |
download | mpd-b843ae1dde619605a318002b2c2326a9cce380f0.tar.gz mpd-b843ae1dde619605a318002b2c2326a9cce380f0.tar.xz mpd-b843ae1dde619605a318002b2c2326a9cce380f0.zip |
song: don't make the struct packed
The "packed" attribute may have negative side effects on performance.
Remove the "packed" attribute, and increase the size of "song.url" to
a multiple of the machine word size.
Diffstat (limited to 'src/song.h')
-rw-r--r-- | src/song.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/song.h b/src/song.h index 9aa9efa94..58506280b 100644 --- a/src/song.h +++ b/src/song.h @@ -37,7 +37,7 @@ typedef struct _Song { struct mpd_tag *tag; struct _Directory *parentDir; time_t mtime; - char url[1]; + char url[sizeof(size_t)]; } mpd_packed Song; Song *newSong(const char *url, struct _Directory *parentDir); |