util: type tweak for linux (missing includes)

This commit is contained in:
bnnm 2021-09-20 00:01:57 +02:00
parent d6baa5b5e1
commit 0c1ae8c9af
2 changed files with 2 additions and 2 deletions

View File

@ -23,7 +23,7 @@ const char* filename_extension(const char* pathname) {
return pathname + strlen(pathname);
}
void swap_extension(char* pathname, size_t pathname_len, const char* swap) {
void swap_extension(char* pathname, int pathname_len, const char* swap) {
char* extension = (char*)filename_extension(pathname);
//todo safeops
if (extension[0] == '\0') {

View File

@ -178,7 +178,7 @@ int round10(int val);
const char* filename_extension(const char* pathname);
/* change pathname's extension to another (or add it if extensionless) */
void swap_extension(char* pathname, size_t pathname_len, const char* swap);
void swap_extension(char* pathname, /*size_t*/ int pathname_len, const char* swap);
/* swap samples in machine endianness to little endian (useful to write .wav) */
void swap_samples_le(sample_t *buf, int count);