aboutsummaryrefslogtreecommitdiff
path: root/devel/stlink/files/extra-pacth-32bit
diff options
context:
space:
mode:
Diffstat (limited to 'devel/stlink/files/extra-pacth-32bit')
-rw-r--r--devel/stlink/files/extra-pacth-32bit18
1 files changed, 0 insertions, 18 deletions
diff --git a/devel/stlink/files/extra-pacth-32bit b/devel/stlink/files/extra-pacth-32bit
deleted file mode 100644
index 321fbb9df950..000000000000
--- a/devel/stlink/files/extra-pacth-32bit
+++ /dev/null
@@ -1,18 +0,0 @@
---- src/common.c.orig 2018-02-19 15:59:51.068865000 +0300
-+++ src/common.c 2018-02-19 16:00:23.483652000 +0300
-@@ -1032,13 +1032,13 @@
- goto on_error;
- }
-
-- mf->base = (uint8_t*) mmap(NULL, st.st_size, PROT_READ, MAP_SHARED, fd, 0);
-+ mf->base = (uint8_t*) mmap(NULL, (size_t)st.st_size, PROT_READ, MAP_SHARED, fd, 0);
- if (mf->base == MAP_FAILED) {
- fprintf(stderr, "mmap() == MAP_FAILED\n");
- goto on_error;
- }
-
-- mf->len = st.st_size;
-+ mf->len = (size_t)st.st_size;
-
- /* success */
- error = 0;