Fix several warnings and build issues.
This commit is contained in:
@@ -206,7 +206,7 @@ int FileSystemTemplate<FileStore>::write(uint64_t inode, void *buffer, uint64_t
|
|||||||
#endif
|
#endif
|
||||||
template<typename FileStore>
|
template<typename FileStore>
|
||||||
uint8_t *FileSystemTemplate<FileStore>::format(void *buffer, typename FileStore::FsSize_t size, bool useDirectories) {
|
uint8_t *FileSystemTemplate<FileStore>::format(void *buffer, typename FileStore::FsSize_t size, bool useDirectories) {
|
||||||
buffer = FileStore::format((uint8_t*) buffer, size, FS_TYPE);
|
buffer = FileStore::format((uint8_t*) buffer, size, (uint32_t) FileSystemTemplate<FileStore>::FS_TYPE);
|
||||||
auto fs = createFileSystem(buffer);
|
auto fs = createFileSystem(buffer);
|
||||||
|
|
||||||
if (buffer && useDirectories) {
|
if (buffer && useDirectories) {
|
||||||
|
|||||||
@@ -70,7 +70,7 @@ uint64_t bytes(const char *str) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
const auto retval = ((uint64_t) ::ox_atoi(copy)) * multiplier;
|
const auto retval = ((uint64_t) ::ox_atoi(copy)) * multiplier;
|
||||||
delete copy;
|
delete []copy;
|
||||||
return retval;
|
return retval;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -7,14 +7,14 @@
|
|||||||
*/
|
*/
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
typedef char int8_t;
|
typedef signed char int8_t;
|
||||||
typedef unsigned char uint8_t;
|
typedef unsigned char uint8_t;
|
||||||
typedef short int16_t;
|
typedef short int16_t;
|
||||||
typedef unsigned short uint16_t;
|
typedef unsigned short uint16_t;
|
||||||
typedef int int32_t;
|
typedef int int32_t;
|
||||||
typedef unsigned int uint32_t;
|
typedef unsigned int uint32_t;
|
||||||
typedef unsigned uint_t;
|
typedef unsigned uint_t;
|
||||||
typedef long long int64_t;
|
typedef long int64_t;
|
||||||
typedef unsigned long long uint64_t;
|
typedef unsigned long long uint64_t;
|
||||||
|
|
||||||
namespace ox {
|
namespace ox {
|
||||||
|
|||||||
Reference in New Issue
Block a user