summaryrefslogtreecommitdiff
path: root/Ports/dmidecode
diff options
context:
space:
mode:
authorLiav A <liavalb@gmail.com>2022-04-01 11:01:13 +0300
committerAndreas Kling <kling@serenityos.org>2022-04-01 11:27:19 +0200
commit979f89473b9424ee3ba96e556244fad128673da3 (patch)
tree4f401525d5bd9d434cc565e615969729234edd64 /Ports/dmidecode
parent9af62ba6e374d25871a54819e4ddda6486d3db9e (diff)
downloadserenity-979f89473b9424ee3ba96e556244fad128673da3.zip
Ports: Remove IPv6 patch for dmidecode
This is not needed anymore because our LibC recognizes what AF_INET6 is about.
Diffstat (limited to 'Ports/dmidecode')
-rw-r--r--Ports/dmidecode/patches/ReadMe.md2
-rw-r--r--Ports/dmidecode/patches/dmidecode.patch9
2 files changed, 1 insertions, 10 deletions
diff --git a/Ports/dmidecode/patches/ReadMe.md b/Ports/dmidecode/patches/ReadMe.md
index ce783b3e21..9d2490760e 100644
--- a/Ports/dmidecode/patches/ReadMe.md
+++ b/Ports/dmidecode/patches/ReadMe.md
@@ -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.
diff --git a/Ports/dmidecode/patches/dmidecode.patch b/Ports/dmidecode/patches/dmidecode.patch
index c5d2fa10a8..bb9aa3cb7f 100644
--- a/Ports/dmidecode/patches/dmidecode.patch
+++ b/Ports/dmidecode/patches/dmidecode.patch
@@ -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;
- }