mirror of
https://github.com/owntone/owntone-server.git
synced 2025-11-25 20:16:14 -05:00
Integer types cleanup
Try to be a bit more strict about integer types, use off_t or int64_t for file size and file offsets. Replace safe_ato*() by safe_atoi32() and safe_atoi64(), fix integer types at call sites to match.
This commit is contained in:
@@ -5,13 +5,10 @@
|
||||
#include <stdint.h>
|
||||
|
||||
int
|
||||
safe_atoi(const char *str, int *val);
|
||||
safe_atoi32(const char *str, int32_t *val);
|
||||
|
||||
int
|
||||
safe_atol(const char *str, long *val);
|
||||
|
||||
int
|
||||
safe_atoull(const char *str, unsigned long long *val);
|
||||
safe_atoi64(const char *str, int64_t *val);
|
||||
|
||||
char *
|
||||
m_realpath(const char *pathname);
|
||||
|
||||
Reference in New Issue
Block a user