diff options
Diffstat (limited to 'package/utils/admswconfig/patches')
-rw-r--r-- | package/utils/admswconfig/patches/001-matrix.patch | 15 | ||||
-rw-r--r-- | package/utils/admswconfig/patches/002-fix-musl.patch | 11 |
2 files changed, 0 insertions, 26 deletions
diff --git a/package/utils/admswconfig/patches/001-matrix.patch b/package/utils/admswconfig/patches/001-matrix.patch deleted file mode 100644 index e50d515757..0000000000 --- a/package/utils/admswconfig/patches/001-matrix.patch +++ /dev/null @@ -1,15 +0,0 @@ ---- a/admswconfig.c -+++ b/admswconfig.c -@@ -111,9 +111,9 @@ int main(int argc, char **argv) - } - } else { - /* display matrix */ -- printf("ethX\tport0\tport1\tport2\tport3\tport4"); -- if (info.ports == 6) -- printf("\tport5"); -+ printf("ethX"); -+ for (i = 0; i < info.ports; i++) -+ printf("\tport%d", i); - printf("\tCPU\n"); - for (i = 0; i < info.ports; i++) { - printf("%d", i); diff --git a/package/utils/admswconfig/patches/002-fix-musl.patch b/package/utils/admswconfig/patches/002-fix-musl.patch deleted file mode 100644 index 3dad1f99d5..0000000000 --- a/package/utils/admswconfig/patches/002-fix-musl.patch +++ /dev/null @@ -1,11 +0,0 @@ ---- a/admswconfig.c -+++ b/admswconfig.c -@@ -68,7 +68,7 @@ int main(int argc, char **argv) - return 1; - } - strcpy(ifr.ifr_name, device); -- ifr.ifr_data = (caddr_t)&info; -+ ifr.ifr_data = (void *)&info; - if (ioctl(fd, SIOCGADMINFO, &ifr) < 0) { - perror("SIOCGADMINFO"); - return 1; |