mirror of
https://github.com/owntone/owntone-server.git
synced 2025-11-25 20:16:14 -05:00
Add DJB hash function to misc.[ch] and use it
This commit is contained in:
@@ -2,10 +2,15 @@
|
||||
#ifndef __MISC_H__
|
||||
#define __MISC_H__
|
||||
|
||||
#include <stdint.h>
|
||||
|
||||
int
|
||||
safe_atoi(const char *str, int *val);
|
||||
|
||||
int
|
||||
safe_atol(const char *str, long *val);
|
||||
|
||||
uint32_t
|
||||
djb_hash(void *data, size_t len);
|
||||
|
||||
#endif /* !__MISC_H__ */
|
||||
|
||||
Reference in New Issue
Block a user