aboutsummaryrefslogtreecommitdiff
path: root/src/song.h
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2008-10-06 18:48:45 +0200
committerMax Kellermann <max@duempel.org>2008-10-06 18:48:45 +0200
commit22e40b61cc0166dcda15b7146724928368201b07 (patch)
tree2f106c41c80b699e687b88842b9589f5c357089e /src/song.h
parent267b2cd6e668fb380a53b1377143a5cc7ce949ea (diff)
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.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/song.h b/src/song.h
index e2e74928..c20bae27 100644
--- a/src/song.h
+++ b/src/song.h
@@ -40,7 +40,7 @@ typedef struct _Song {
struct tag *tag;
struct _Directory *parentDir;
time_t mtime;
- char url[1];
+ char url[sizeof(size_t)];
} mpd_packed Song;
Song *