Use standard limits for VFS file and path length
This commit is contained in:
@@ -29,7 +29,7 @@ typedef struct initrd_file_t {
|
||||
/// Number used as delimiter, it must be set to 0xBF.
|
||||
int magic;
|
||||
/// The name of the file.
|
||||
char fileName[MAX_FILENAME_LENGTH];
|
||||
char fileName[NAME_MAX];
|
||||
/// The type of the file.
|
||||
short int file_type;
|
||||
/// The uid of the owner.
|
||||
|
||||
@@ -97,7 +97,7 @@ typedef struct mountpoint_t {
|
||||
/// The id of the mountpoint.
|
||||
int32_t mp_id;
|
||||
/// Name of the mountpoint.
|
||||
char mountpoint[MAX_FILENAME_LENGTH];
|
||||
char mountpoint[NAME_MAX];
|
||||
/// Maschera dei permessi.
|
||||
unsigned int pmask;
|
||||
/// User ID.
|
||||
|
||||
@@ -12,12 +12,6 @@
|
||||
#include "stdbool.h"
|
||||
#include "multiboot.h"
|
||||
|
||||
/// The maximum length of a file name.
|
||||
#define MAX_FILENAME_LENGTH 64
|
||||
|
||||
/// The maximum length of a path.
|
||||
#define MAX_PATH_LENGTH 256
|
||||
|
||||
/// The maximum number of modules.
|
||||
#define MAX_MODULES 10
|
||||
|
||||
|
||||
Reference in New Issue
Block a user