pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/security/lasso Add some necessary casts for LP64 platf...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/75288fb744fa
branches:  trunk
changeset: 395079:75288fb744fa
user:      joerg <joerg%pkgsrc.org@localhost>
date:      Mon Jul 06 22:01:34 2009 +0000

description:
Add some necessary casts for LP64 platforms in the hash functions.
Merge patch-cb into patch-bd. Fix ctype casts.

diffstat:

 security/lasso/distinfo         |   8 ++++----
 security/lasso/patches/patch-aa |  22 ++++++++++++++++++++++
 security/lasso/patches/patch-bc |  13 ++++++-------
 security/lasso/patches/patch-bd |  25 ++++++++++++++++++-------
 security/lasso/patches/patch-cb |  16 ----------------
 5 files changed, 50 insertions(+), 34 deletions(-)

diffs (125 lines):

diff -r 68813a255ce4 -r 75288fb744fa security/lasso/distinfo
--- a/security/lasso/distinfo   Mon Jul 06 21:50:39 2009 +0000
+++ b/security/lasso/distinfo   Mon Jul 06 22:01:34 2009 +0000
@@ -1,11 +1,11 @@
-$NetBSD: distinfo,v 1.3 2009/05/26 05:26:00 manu Exp $
+$NetBSD: distinfo,v 1.4 2009/07/06 22:01:34 joerg Exp $
 
 SHA1 (lasso-2.2.2.tar.gz) = 32651fa71b16da01a94db234425846729a510623
 RMD160 (lasso-2.2.2.tar.gz) = a4faae605726202db33d36a2b520b0ab8f17aa76
 Size (lasso-2.2.2.tar.gz) = 1802749 bytes
+SHA1 (patch-aa) = 965365d3aff5e1014dbe5bc7036e12837ccfc185
 SHA1 (patch-ba) = 4ebb013f1c264e5b0008faeebdecc7bdb49be63a
 SHA1 (patch-bb) = 0867b8ae4036620084b73d28546ac089b57d3fb9
-SHA1 (patch-bc) = 0104fc8a9d3acac47130e52f3e5aa2af78337170
-SHA1 (patch-bd) = 1a43558472ff5a1f24bb5b1228335894a77f875e
+SHA1 (patch-bc) = 1633e47d0b4db574183bc3798a2dd839c98d11cb
+SHA1 (patch-bd) = ae3475ed7dbc79fd48ef72f072274cae1f1b41ba
 SHA1 (patch-ca) = c803ef9032744263f0fc434eda2c3b729fc96225
-SHA1 (patch-cb) = d6804551a3738d57cca71e018203f07c3736af99
diff -r 68813a255ce4 -r 75288fb744fa security/lasso/patches/patch-aa
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/security/lasso/patches/patch-aa   Mon Jul 06 22:01:34 2009 +0000
@@ -0,0 +1,22 @@
+$NetBSD: patch-aa,v 1.3 2009/07/06 22:01:34 joerg Exp $
+
+--- lasso/registry.c.orig      2010-05-31 15:45:21.000000000 +0200
++++ lasso/registry.c
+@@ -116,7 +116,7 @@ guint lasso_registry_direct_mapping_hash
+ {
+       return g_direct_hash((void*)(record->from_namespace
+               ^ record->from_name
+-              ^ record->to_namespace));
++              ^ (size_t)record->to_namespace));
+ }
+ 
+ /**
+@@ -129,7 +129,7 @@ guint lasso_registry_direct_mapping_hash
+  */
+ guint lasso_registry_functional_mapping_hash(LassoRegistryFunctionalMappingRecord *record)
+ {
+-      return g_direct_hash((void*)(record->from_namespace ^ record->to_namespace));
++      return g_direct_hash((void*)(record->from_namespace ^ (size_t)record->to_namespace));
+ }
+ 
+ /**
diff -r 68813a255ce4 -r 75288fb744fa security/lasso/patches/patch-bc
--- a/security/lasso/patches/patch-bc   Mon Jul 06 21:50:39 2009 +0000
+++ b/security/lasso/patches/patch-bc   Mon Jul 06 22:01:34 2009 +0000
@@ -1,14 +1,13 @@
-$NetBSD: patch-bc,v 1.2 2009/05/26 05:26:00 manu Exp $
---- lasso/xml/tools.c.orig     2009-04-05 11:24:03.000000000 +0200
-+++ lasso/xml/tools.c  2009-04-05 11:24:47.000000000 +0200
-@@ -1209,9 +1209,9 @@
- {
+$NetBSD: patch-bc,v 1.3 2009/07/06 22:01:34 joerg Exp $
+
+--- lasso/xml/tools.c.orig     2009-03-27 17:12:48.000000000 +0100
++++ lasso/xml/tools.c
+@@ -1210,7 +1210,7 @@ is_base64(const char *message)
        const char *c;
  
        c = message;
 -      while (*c != 0 && (isalnum(*c) || *c == '+' || *c == '/' || *c == '\n' || *c == '\r')) c++;
-+      while (*c != 0 && (isalnum((int)*c) || *c == '+' || *c == '/' || *c == '\n' || *c == '\r')) c++;
++      while (*c != 0 && (isalnum((unsigned char)*c) || *c == '+' || *c == '/' || *c == '\n' || *c == '\r')) c++;
        while (*c == '=' || *c == '\n' || *c == '\r') c++; /* trailing = */
  
        if (*c == 0)
-               return TRUE;
diff -r 68813a255ce4 -r 75288fb744fa security/lasso/patches/patch-bd
--- a/security/lasso/patches/patch-bd   Mon Jul 06 21:50:39 2009 +0000
+++ b/security/lasso/patches/patch-bd   Mon Jul 06 22:01:34 2009 +0000
@@ -1,14 +1,25 @@
-$NetBSD: patch-bd,v 1.2 2009/05/26 05:26:00 manu Exp $
---- lasso/xml/xml.c.orig       2009-04-05 11:25:55.000000000 +0200
-+++ lasso/xml/xml.c    2009-04-05 11:26:27.000000000 +0200
-@@ -1591,9 +1591,9 @@
- {
+$NetBSD: patch-bd,v 1.3 2009/07/06 22:01:34 joerg Exp $
+
+--- lasso/xml/xml.c.orig       2009-03-27 17:12:48.000000000 +0100
++++ lasso/xml/xml.c
+@@ -1554,8 +1554,9 @@ lasso_node_new_from_xmlNode(xmlNode *xml
+                       }
+               }
+       }
+-
+-      node = lasso_node_new_from_xmlNode_with_type(xmlnode, typename);
++      if (typename) {
++              node = lasso_node_new_from_xmlNode_with_type(xmlnode, typename);
++      }
+       lasso_release(typename);
+ 
+       return node;
+@@ -1592,7 +1593,7 @@ is_base64(const char *message)
        const char *c;
  
        c = message;
 -      while (*c != 0 && (isalnum(*c) || *c == '+' || *c == '/' || *c == '\n' || *c == '\r')) c++;
-+      while (*c != 0 && (isalnum((int)*c) || *c == '+' || *c == '/' || *c == '\n' || *c == '\r')) c++;
++      while (*c != 0 && (isalnum((unsigned char)*c) || *c == '+' || *c == '/' || *c == '\n' || *c == '\r')) c++;
        while (*c == '=' || *c == '\n' || *c == '\r') c++; /* trailing = */
  
        if (*c == 0)
-               return TRUE;
diff -r 68813a255ce4 -r 75288fb744fa security/lasso/patches/patch-cb
--- a/security/lasso/patches/patch-cb   Mon Jul 06 21:50:39 2009 +0000
+++ /dev/null   Thu Jan 01 00:00:00 1970 +0000
@@ -1,16 +0,0 @@
-Index: lasso/xml/xml.c
-===================================================================
---- lasso/xml/xml.c    (revision 4193)
-+++ lasso/xml/xml.c    (revision 4194)
-@@ -1554,8 +1554,9 @@
-                       }
-               }
-       }
--
--      node = lasso_node_new_from_xmlNode_with_type(xmlnode, typename);
-+      if (typename) {
-+              node = lasso_node_new_from_xmlNode_with_type(xmlnode, typename);
-+      }
-       lasso_release(typename);
- 
-       return node;



Home | Main Index | Thread Index | Old Index