[prev in list] [next in list] [prev in thread] [next in thread] 

List:       gnupg-commit-watchers
Subject:    [gnutls-commits] CVS gnutls/lib
From:       "CVS User jas" <jas () gnutls ! org>
Date:       2005-12-28 9:25:44
Message-ID: E1ErXZ2-0006fZ-Pf () trithemius ! gnupg ! org
[Download RAW message or body]

Update of /cvs/gnutls/gnutls/lib
In directory trithemius:/tmp/cvs-serv25619/lib

Modified Files:
	gnutls_errors.c gnutls_global.h 
Log Message:
Constify, tiny patch from "ZIGLIO, Frediano, VF-IT" <Frediano.Ziglio@vodafone.com>.

--- /cvs/gnutls/gnutls/lib/gnutls_errors.c	2005/12/15 13:24:29	2.143
+++ /cvs/gnutls/gnutls/lib/gnutls_errors.c	2005/12/28 09:25:44	2.144
@@ -43,7 +43,7 @@
 };
 typedef struct gnutls_error_entry gnutls_error_entry;
 
-static gnutls_error_entry error_algorithms[] = {
+static const gnutls_error_entry error_algorithms[] = {
   /* "Short Description", Error code define, critical (0,1) -- 1 in most cases */
   ERROR_ENTRY ("Success.", GNUTLS_E_SUCCESS, 0),
   ERROR_ENTRY ("Could not negotiate a supported cipher suite.",
@@ -245,7 +245,7 @@
 };
 
 #define GNUTLS_ERROR_LOOP(b) \
-        gnutls_error_entry *p; \
+        const gnutls_error_entry *p; \
                 for(p = error_algorithms; p->desc != NULL; p++) { b ; }
 
 #define GNUTLS_ERROR_ALG_LOOP(a) \
--- /cvs/gnutls/gnutls/lib/gnutls_global.h	2005/11/07 23:27:57	2.14
+++ /cvs/gnutls/gnutls/lib/gnutls_global.h	2005/12/28 09:25:44	2.15
@@ -32,7 +32,7 @@
 extern ASN1_TYPE _gnutls_pkix1_asn;
 extern ASN1_TYPE _gnutls_gnutls_asn;
 
-#define _gnutls_get_gnutls_asn() _gnutls_gnutls_asn
-#define _gnutls_get_pkix() _gnutls_pkix1_asn
+#define _gnutls_get_gnutls_asn() ((const node_asn*) _gnutls_gnutls_asn)
+#define _gnutls_get_pkix() ((const node_asn*) _gnutls_pkix1_asn)
 
 #endif


_______________________________________________
Gnutls-commits mailing list
Gnutls-commits@gnupg.org
http://lists.gnupg.org/mailman/listinfo/gnutls-commits
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic