last.fm scrobbler: Use portable alignment

Change-Id: I44cd89f4a4dca1ab9c6134b6a1bf16328d233c0e
This commit is contained in:
Christian Soffke 2023-06-23 16:09:37 +02:00
parent 8a22d2678a
commit 207a7fe448

View file

@ -343,7 +343,7 @@ int scrobbler_init_cache(void)
static inline size_t cache_get_entry_size(int str_len)
{
/* entry_sz consists of the cache entry + str_len + \0NULL terminator */
return ALIGN_UP(str_len + 1 + sizeof(struct cache_entry), 0x4);
return ALIGN_UP(str_len + 1 + sizeof(struct cache_entry), alignof(struct cache_entry));
}
static inline const char* str_chk_valid(const char *s, const char *alt)