Implement storage device partition rescan (XDRV_PARTITION_RESCAN), Self-hosted installation WIP
This commit is contained in:
8
libu/endianess.h
Normal file
8
libu/endianess.h
Normal file
@@ -0,0 +1,8 @@
|
||||
#ifndef _KERNEL_LIBK_ENDIANESS_H
|
||||
#define _KERNEL_LIBK_ENDIANESS_H
|
||||
|
||||
#define BSWAP16(x) __builtin_bswap16 ((x))
|
||||
#define BSWAP32(x) __builtin_bswap32 ((x))
|
||||
#define BSWAP64(x) __builtin_bswap64 ((x))
|
||||
|
||||
#endif // _KERNEL_LIBK_ENDIANESS_H
|
||||
@@ -33,6 +33,7 @@ struct edit_line {
|
||||
};
|
||||
|
||||
void in_stream_read_line (const char* prompt, char* buffer, size_t max) {
|
||||
memset (buffer, 0, max);
|
||||
struct edit_line edit_line;
|
||||
memset (&edit_line, 0, sizeof (edit_line));
|
||||
const char* render = NULL;
|
||||
|
||||
Reference in New Issue
Block a user