Hi,

The attached patch makes some function that are only used in that
file static.  There doesn't seem to be a reason to export those
functions.


Kurt

Index: crypto/asn1/tasn_new.c
===================================================================
RCS file: /home/kurt/openssl/cvs/openssl-cvs/openssl/crypto/asn1/tasn_new.c,v
retrieving revision 1.15
diff -u -r1.15 tasn_new.c
--- crypto/asn1/tasn_new.c      1 Sep 2005 20:42:49 -0000       1.15
+++ crypto/asn1/tasn_new.c      4 Feb 2006 16:39:53 -0000
@@ -68,7 +68,7 @@
                                                                int combine);
 static void asn1_item_clear(ASN1_VALUE **pval, const ASN1_ITEM *it);
 static void asn1_template_clear(ASN1_VALUE **pval, const ASN1_TEMPLATE *tt);
-void asn1_primitive_clear(ASN1_VALUE **pval, const ASN1_ITEM *it);
+static void asn1_primitive_clear(ASN1_VALUE **pval, const ASN1_ITEM *it);
 
 ASN1_VALUE *ASN1_item_new(const ASN1_ITEM *it)
        {
@@ -373,7 +373,7 @@
        return 0;
        }
 
-void asn1_primitive_clear(ASN1_VALUE **pval, const ASN1_ITEM *it)
+static void asn1_primitive_clear(ASN1_VALUE **pval, const ASN1_ITEM *it)
        {
        int utype;
        if (it && it->funcs)
Index: crypto/bio/bss_acpt.c
===================================================================
RCS file: /home/kurt/openssl/cvs/openssl-cvs/openssl/crypto/bio/bss_acpt.c,v
retrieving revision 1.15
diff -u -r1.15 bss_acpt.c
--- crypto/bio/bss_acpt.c       20 Mar 2003 23:18:10 -0000      1.15
+++ crypto/bio/bss_acpt.c       4 Feb 2006 16:14:20 -0000
@@ -100,8 +100,8 @@
 static int acpt_free(BIO *data);
 static int acpt_state(BIO *b, BIO_ACCEPT *c);
 static void acpt_close_socket(BIO *data);
-BIO_ACCEPT *BIO_ACCEPT_new(void );
-void BIO_ACCEPT_free(BIO_ACCEPT *a);
+static BIO_ACCEPT *BIO_ACCEPT_new(void );
+static void BIO_ACCEPT_free(BIO_ACCEPT *a);
 
 #define ACPT_S_BEFORE                  1
 #define ACPT_S_GET_ACCEPT_SOCKET       2
@@ -141,7 +141,7 @@
        return(1);
        }
 
-BIO_ACCEPT *BIO_ACCEPT_new(void)
+static BIO_ACCEPT *BIO_ACCEPT_new(void)
        {
        BIO_ACCEPT *ret;
 
@@ -154,7 +154,7 @@
        return(ret);
        }
 
-void BIO_ACCEPT_free(BIO_ACCEPT *a)
+static void BIO_ACCEPT_free(BIO_ACCEPT *a)
        {
        if(a == NULL)
            return;
Index: crypto/bio/bss_dgram.c
===================================================================
RCS file: /home/kurt/openssl/cvs/openssl-cvs/openssl/crypto/bio/bss_dgram.c,v
retrieving revision 1.2
diff -u -r1.2 bss_dgram.c
--- crypto/bio/bss_dgram.c      27 Apr 2005 16:27:12 -0000      1.2
+++ crypto/bio/bss_dgram.c      4 Feb 2006 16:15:22 -0000
@@ -82,7 +82,7 @@
 static int dgram_free(BIO *data);
 static int dgram_clear(BIO *bio);
 
-int BIO_dgram_should_retry(int s);
+static int BIO_dgram_should_retry(int s);
 
 static BIO_METHOD methods_dgramp=
        {
@@ -399,7 +399,7 @@
        return(ret);
        }
 
-int BIO_dgram_should_retry(int i)
+static int BIO_dgram_should_retry(int i)
        {
        int err;
 

Reply via email to