mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-10-14 02:27:39 -04:00
last.fm scrobbler: Use portable alignment
Change-Id: I44cd89f4a4dca1ab9c6134b6a1bf16328d233c0e
This commit is contained in:
parent
8a22d2678a
commit
207a7fe448
1 changed files with 1 additions and 1 deletions
|
@ -343,7 +343,7 @@ int scrobbler_init_cache(void)
|
||||||
static inline size_t cache_get_entry_size(int str_len)
|
static inline size_t cache_get_entry_size(int str_len)
|
||||||
{
|
{
|
||||||
/* entry_sz consists of the cache entry + str_len + \0NULL terminator */
|
/* 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)
|
static inline const char* str_chk_valid(const char *s, const char *alt)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue