mirror of
https://github.com/RGBCube/serenity
synced 2025-07-08 15:07:35 +00:00
Kernel/Net: Don't allocate memory for adapters' names
Instead, use a FixedStringBuffer to store a string with up to 16 chars.
This commit is contained in:
parent
b2fd51f561
commit
3f63be949a
14 changed files with 40 additions and 40 deletions
|
@ -26,7 +26,7 @@ public:
|
|||
static bool is_initialized();
|
||||
bool initialize();
|
||||
|
||||
static ErrorOr<NonnullOwnPtr<KString>> generate_interface_name_from_pci_address(PCI::DeviceIdentifier const&);
|
||||
static ErrorOr<FixedStringBuffer<IFNAMSIZ>> generate_interface_name_from_pci_address(PCI::DeviceIdentifier const&);
|
||||
|
||||
NetworkingManagement();
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue