diff options
author | Eric Wong <normalperson@yhbt.net> | 2008-10-11 20:07:24 -0700 |
---|---|---|
committer | Eric Wong <normalperson@yhbt.net> | 2008-10-12 05:27:32 -0700 |
commit | 442b041d3f00e2edec209dfafecb50f49f03402c (patch) | |
tree | f049477b604ba4587b2140abe88c808e938d91b0 | |
parent | 3402a7c25566176da698cd90ad166e93a2560e3d (diff) | |
download | mpd-442b041d3f00e2edec209dfafecb50f49f03402c.tar.gz mpd-442b041d3f00e2edec209dfafecb50f49f03402c.tar.xz mpd-442b041d3f00e2edec209dfafecb50f49f03402c.zip |
song: use mpd_sizeof_str_flex_array for song.url
This can potentially save a few bytes on 64-bit
architectures and makes it more obvious what
we're doing.
-rw-r--r-- | src/song.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/song.h b/src/song.h index 338bcf6c1..e29c034ef 100644 --- a/src/song.h +++ b/src/song.h @@ -35,8 +35,8 @@ struct mpd_song { struct mpd_tag *tag; struct directory *parent; time_t mtime; - char url[sizeof(size_t)]; -}; + char url[mpd_sizeof_str_flex_array]; +} mpd_packed; void song_free(struct mpd_song *); |