summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Soffke <christian.soffke@gmail.com>2023-06-23 16:09:37 +0200
committerChristian Soffke <christian.soffke@gmail.com>2023-06-23 16:09:37 +0200
commit207a7fe448fccaead498f65ff77ec6af3c20dd02 (patch)
treeb2e68885de80967b1b3fafd878a2d901f2376cfb
parent8a22d2678a9fff97fd159a4b2eb45e637f08c79f (diff)
downloadrockbox-207a7fe448fccaead498f65ff77ec6af3c20dd02.tar.gz
rockbox-207a7fe448fccaead498f65ff77ec6af3c20dd02.zip
last.fm scrobbler: Use portable alignment
Change-Id: I44cd89f4a4dca1ab9c6134b6a1bf16328d233c0e
-rw-r--r--apps/plugins/lastfm_scrobbler.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/plugins/lastfm_scrobbler.c b/apps/plugins/lastfm_scrobbler.c
index eb6b8f7abd..fa3ab08fe0 100644
--- a/apps/plugins/lastfm_scrobbler.c
+++ b/apps/plugins/lastfm_scrobbler.c
@@ -343,7 +343,7 @@ int scrobbler_init_cache(void)
343static inline size_t cache_get_entry_size(int str_len) 343static inline size_t cache_get_entry_size(int str_len)
344{ 344{
345 /* entry_sz consists of the cache entry + str_len + \0NULL terminator */ 345 /* entry_sz consists of the cache entry + str_len + \0NULL terminator */
346 return ALIGN_UP(str_len + 1 + sizeof(struct cache_entry), 0x4); 346 return ALIGN_UP(str_len + 1 + sizeof(struct cache_entry), alignof(struct cache_entry));
347} 347}
348 348
349static inline const char* str_chk_valid(const char *s, const char *alt) 349static inline const char* str_chk_valid(const char *s, const char *alt)