From 22e40b61cc0166dcda15b7146724928368201b07 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Mon, 6 Oct 2008 18:48:45 +0200 Subject: 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. --- src/song.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/song.h') diff --git a/src/song.h b/src/song.h index e2e74928b..c20bae270 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 * -- cgit v1.2.3