pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/security/mit-krb5/patches mit-krb5: .. and the new patch



details:   https://anonhg.NetBSD.org/pkgsrc/rev/1645a9ff8eb1
branches:  trunk
changeset: 426955:1645a9ff8eb1
user:      adam <adam%pkgsrc.org@localhost>
date:      Thu Apr 09 10:57:49 2020 +0000

description:
mit-krb5: .. and the new patch

diffstat:

 security/mit-krb5/patches/patch-kprop_kproplog.c |  15 +++++++++++++++
 1 files changed, 15 insertions(+), 0 deletions(-)

diffs (19 lines):

diff -r ace603d087cc -r 1645a9ff8eb1 security/mit-krb5/patches/patch-kprop_kproplog.c
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/security/mit-krb5/patches/patch-kprop_kproplog.c  Thu Apr 09 10:57:49 2020 +0000
@@ -0,0 +1,15 @@
+$NetBSD: patch-kprop_kproplog.c,v 1.1 2020/04/09 10:57:49 adam Exp $
+
+Fix mmap -Werror=incompatible-pointer-types.
+
+--- kprop/kproplog.c.orig      2020-04-09 08:50:26.000000000 +0000
++++ kprop/kproplog.c
+@@ -412,7 +412,7 @@ map_ulog(const char *filename)
+         return NULL;
+     if (fstat(fd, &st) < 0)
+         return NULL;
+-    ulog = mmap(0, st.st_size, PROT_READ, MAP_PRIVATE, fd, 0);
++    ulog = (kdb_hlog_t *)mmap(0, st.st_size, PROT_READ, MAP_PRIVATE, fd, 0);
+     return (ulog == MAP_FAILED) ? NULL : ulog;
+ }
+ 



Home | Main Index | Thread Index | Old Index