mirror of
https://github.com/owntone/owntone-server.git
synced 2025-11-21 18:26:06 -05:00
[misc] Add small function to swap pointers
This commit is contained in:
@@ -569,6 +569,14 @@ trimwhitespace(const char *str)
|
||||
return out;
|
||||
}
|
||||
|
||||
void
|
||||
swap_pointers(char **a, char **b)
|
||||
{
|
||||
char *t = *a;
|
||||
*a = *b;
|
||||
*b = t;
|
||||
}
|
||||
|
||||
uint32_t
|
||||
djb_hash(const void *data, size_t len)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user