mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-25 17:10:23 +00:00
Ports: Remove IPv6 patch for dmidecode
This is not needed anymore because our LibC recognizes what AF_INET6 is about.
This commit is contained in:
parent
9af62ba6e3
commit
979f89473b
Notes:
sideshowbarker
2024-07-17 16:22:34 +09:00
Author: https://github.com/supercomputer7 Commit: https://github.com/SerenityOS/serenity/commit/979f89473b Pull-request: https://github.com/SerenityOS/serenity/pull/13400
2 changed files with 1 additions and 10 deletions
|
@ -2,4 +2,4 @@
|
|||
|
||||
## `dmidecode.patch`
|
||||
|
||||
Remove IPv6 uses and set the correct path for the dmi firmware.
|
||||
Set the correct path for the dmi firmware.
|
||||
|
|
|
@ -9,12 +9,3 @@ diff -u b/dmidecode.c b/dmidecode.c
|
|||
+#define SYS_FIRMWARE_DIR "/sys/firmware/bios"
|
||||
#define SYS_ENTRY_FILE SYS_FIRMWARE_DIR "/smbios_entry_point"
|
||||
#define SYS_TABLE_FILE SYS_FIRMWARE_DIR "/DMI"
|
||||
|
||||
@@ -3654,7 +3654,5 @@
|
||||
{
|
||||
if (addrtype == 0x1) /* IPv4 */
|
||||
return inet_ntop(AF_INET, data, storage, 64);
|
||||
- if (addrtype == 0x2) /* IPv6 */
|
||||
- return inet_ntop(AF_INET6, data, storage, 64);
|
||||
return out_of_spec;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue