summaryrefslogtreecommitdiff
path: root/archivers/lz4json/files/patch-warnings
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--archivers/lz4json/files/patch-warnings50
1 files changed, 0 insertions, 50 deletions
diff --git a/archivers/lz4json/files/patch-warnings b/archivers/lz4json/files/patch-warnings
deleted file mode 100644
index 13c4f68607a7..000000000000
--- a/archivers/lz4json/files/patch-warnings
+++ /dev/null
@@ -1,50 +0,0 @@
---- lz4jsoncat.c 2019-12-29 00:44:09.000000000 -0500
-+++ lz4jsoncat.c 2023-08-22 01:48:00.646059000 -0400
-@@ -1,3 +1,3 @@
--/*
-+/*
- * Dump mozilla style lz4json files.
- *
-@@ -30,15 +30,19 @@
- #include <stdint.h>
- #ifndef __APPLE__
-+# if defined(__FreeBSD__) || defined(__OpenBSD__) || defined(__NetBSD__) || defined(__DragonFlyBSD__)
-+#include <sys/endian.h>
-+# else
- #include <endian.h>
-+# endif
- #else
- #define htole32(x) x /* assume apple targets are little endian */
- #endif
-
--#include "lz4.h"
-+#include <lz4.h>
-
- int main(int ac, char **av)
- {
-- while (*++av) {
-- int fd = open(*av, O_RDONLY);
-+ while (--ac) {
-+ int fd = open(*++av, O_RDONLY);
- if (fd < 0) {
- perror(*av);
-@@ -56,5 +60,5 @@
-
- char *map = mmap(NULL, st.st_size, PROT_READ, MAP_SHARED, fd, 0);
-- if (map == (char *)-1) {
-+ if (map == MAP_FAILED) {
- perror(*av);
- exit(1);
-@@ -64,5 +68,5 @@
- exit(1);
- }
-- size_t outsz = htole32(*(uint32_t *) (map + 8));
-+ ssize_t outsz = htole32(*(uint32_t *) (map + 8));
- char *out = malloc(outsz);
- if (!out) {
-@@ -88,5 +92,2 @@
- return 0;
- }
--
--
--