pkgsrc-Changes archive

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

CVS commit: pkgsrc/security/mit-krb5/patches



Module Name:    pkgsrc
Committed By:   adam
Date:           Thu Apr  9 10:57:49 UTC 2020

Added Files:
        pkgsrc/security/mit-krb5/patches: patch-kprop_kproplog.c

Log Message:
mit-krb5: .. and the new patch


To generate a diff of this commit:
cvs rdiff -u -r0 -r1.1 \
    pkgsrc/security/mit-krb5/patches/patch-kprop_kproplog.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Added files:

Index: pkgsrc/security/mit-krb5/patches/patch-kprop_kproplog.c
diff -u /dev/null pkgsrc/security/mit-krb5/patches/patch-kprop_kproplog.c:1.1
--- /dev/null   Thu Apr  9 10:57:49 2020
+++ pkgsrc/security/mit-krb5/patches/patch-kprop_kproplog.c     Thu Apr  9 10:57:49 2020
@@ -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