pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/net/xorp Add some explicit casts and split a #if to un...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/d37d85be19c0
branches:  trunk
changeset: 547764:d37d85be19c0
user:      joerg <joerg%pkgsrc.org@localhost>
date:      Thu Oct 02 13:13:05 2008 +0000

description:
Add some explicit casts and split a #if to unbreak build on DragonFly as
reported in PR 39667.

diffstat:

 net/xorp/distinfo         |   8 ++++----
 net/xorp/patches/patch-aa |   4 ++--
 net/xorp/patches/patch-ab |  17 ++++++++++-------
 net/xorp/patches/patch-ac |   4 ++--
 4 files changed, 18 insertions(+), 15 deletions(-)

diffs (84 lines):

diff -r 9c8089183055 -r d37d85be19c0 net/xorp/distinfo
--- a/net/xorp/distinfo Thu Oct 02 12:41:52 2008 +0000
+++ b/net/xorp/distinfo Thu Oct 02 13:13:05 2008 +0000
@@ -1,8 +1,8 @@
-$NetBSD: distinfo,v 1.12 2008/09/30 15:03:11 joerg Exp $
+$NetBSD: distinfo,v 1.13 2008/10/02 13:13:05 joerg Exp $
 
 SHA1 (xorp-1.5.tar.gz) = cc6a0ec42d5dd49b57b9dab365a247c646d5e843
 RMD160 (xorp-1.5.tar.gz) = 4dd5cc7162a0f8087ed973b45279718ea2a337b8
 Size (xorp-1.5.tar.gz) = 7384564 bytes
-SHA1 (patch-aa) = d176aa03493496dfd1742ed8164f83aa1f74047b
-SHA1 (patch-ab) = 48a7e3579e1fa2bdd051b61420fa32bc6512c140
-SHA1 (patch-ac) = c30d04960b6f58792365462e0ad1daed7986c9ab
+SHA1 (patch-aa) = b4d698f072cfc6f822716ef3193cb43f6f282f7c
+SHA1 (patch-ab) = 5af8a949ddfd655815ea12ce2cc02867a5499c05
+SHA1 (patch-ac) = ebf26bd28368b50633c900c3041d15e2853eb57e
diff -r 9c8089183055 -r d37d85be19c0 net/xorp/patches/patch-aa
--- a/net/xorp/patches/patch-aa Thu Oct 02 12:41:52 2008 +0000
+++ b/net/xorp/patches/patch-aa Thu Oct 02 13:13:05 2008 +0000
@@ -1,4 +1,4 @@
-$NetBSD: patch-aa,v 1.5 2008/09/30 15:03:11 joerg Exp $
+$NetBSD: patch-aa,v 1.6 2008/10/02 13:13:05 joerg Exp $
 
 --- libxipc/sockutil.cc.orig   2008-09-30 15:19:41.000000000 +0200
 +++ libxipc/sockutil.cc
@@ -9,7 +9,7 @@
 -          delete[] ifconf.ifc_buf;
 -      ifconf.ifc_buf = new char[ifconf.ifc_len];
 +          free(ifconf.ifc_buf);
-+      ifconf.ifc_buf = malloc(ifconf.ifc_len);
++      ifconf.ifc_buf = (char *)malloc(ifconf.ifc_len);
        if (ioctl(s, SIOCGIFCONF, &ifconf) < 0) {
            // Check UNPv1, 2e, pp 435 for an explanation why we need this
            if ((errno != EINVAL) || (lastlen != 0)) {
diff -r 9c8089183055 -r d37d85be19c0 net/xorp/patches/patch-ab
--- a/net/xorp/patches/patch-ab Thu Oct 02 12:41:52 2008 +0000
+++ b/net/xorp/patches/patch-ab Thu Oct 02 13:13:05 2008 +0000
@@ -1,18 +1,21 @@
-$NetBSD: patch-ab,v 1.5 2008/09/30 15:03:11 joerg Exp $
+$NetBSD: patch-ab,v 1.6 2008/10/02 13:13:05 joerg Exp $
 
 --- fea/data_plane/control_socket/click_socket.cc.orig 2008-09-30 15:43:19.000000000 +0200
 +++ fea/data_plane/control_socket/click_socket.cc
-@@ -732,8 +732,13 @@ ClickSocket::mount_click_file_system(str
+@@ -731,7 +731,15 @@ ClickSocket::mount_click_file_system(str
+ #ifdef HOST_OS_LINUX
      ret_value = mount("none", _kernel_click_mount_directory.c_str(),
                      CLICK_FILE_SYSTEM_TYPE.c_str(), 0, 0);
- #else // ! HOST_OS_LINUX
-+#  if defined(__NetBSD__) && defined(__NetBSD_Prereq__) && __NetBSD_Prereq__(4,99,24)
+-#else // ! HOST_OS_LINUX
++#elif defined(__NetBSD__) && defined(__NetBSD_Prereq__)
++#   if __NetBSD_Prereq__(4,99,24)
 +    ret_value = mount(CLICK_FILE_SYSTEM_TYPE.c_str(),
 +                    _kernel_click_mount_directory.c_str(), 0, 0, 0);
 +#  else
++    ret_value = mount(CLICK_FILE_SYSTEM_TYPE.c_str(),
++                    _kernel_click_mount_directory.c_str(), 0, 0);
++#  endif
++#else
      ret_value = mount(CLICK_FILE_SYSTEM_TYPE.c_str(),
                      _kernel_click_mount_directory.c_str(), 0, 0);
-+#  endif
  #endif // ! HOST_OS_LINUX
- 
-     if (ret_value != 0) {
diff -r 9c8089183055 -r d37d85be19c0 net/xorp/patches/patch-ac
--- a/net/xorp/patches/patch-ac Thu Oct 02 12:41:52 2008 +0000
+++ b/net/xorp/patches/patch-ac Thu Oct 02 13:13:05 2008 +0000
@@ -1,4 +1,4 @@
-$NetBSD: patch-ac,v 1.3 2008/09/30 15:03:11 joerg Exp $
+$NetBSD: patch-ac,v 1.4 2008/10/02 13:13:05 joerg Exp $
 
 --- fea/data_plane/ifconfig/ifconfig_get_ioctl.cc.orig 2008-09-30 15:53:56.000000000 +0200
 +++ fea/data_plane/ifconfig/ifconfig_get_ioctl.cc
@@ -27,7 +27,7 @@
 -          delete[] ifconf->ifc_buf;
 -      ifconf->ifc_buf = new char[ifconf->ifc_len];
 +          free(ifconf->ifc_buf);
-+      ifconf->ifc_buf = malloc(ifconf->ifc_len);
++      ifconf->ifc_buf = (char *)malloc(ifconf->ifc_len);
        if (ioctl(s, SIOCGIFCONF, ifconf) < 0) {
            // Check UNPv1, 2e, pp 435 for an explanation why we need this
            if ((errno != EINVAL) || (lastlen != 0)) {



Home | Main Index | Thread Index | Old Index