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

List:       openssl-cvs
Subject:    cvs commit: openssl/crypto/dso dso.h dso_dl.c dso_dlfcn.c dso_lib.c dso_win32.c
From:       geoff () openssl ! org
Date:       2000-04-06 14:54:57
[Download RAW message or body]

geoff       06-Apr-2000 16:54:56

  Modified:    crypto/dso dso.h dso_dl.c dso_dlfcn.c dso_lib.c dso_win32.c
  Log:
  Constification, and a silly mistake in the comments.
  
  Revision  Changes    Path
  1.2       +6 -6      openssl/crypto/dso/dso.h
  1.2       +4 -4      openssl/crypto/dso/dso_dl.c
  1.3       +4 -4      openssl/crypto/dso/dso_dlfcn.c
  1.2       +2 -2      openssl/crypto/dso/dso_lib.c
  1.2       +4 -4      openssl/crypto/dso/dso_win32.c
  
  Index: dso.h
  ===================================================================
  RCS file: /e/openssl/cvs/openssl/crypto/dso/dso.h,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- dso.h	2000/04/04 21:57:11	1.1
  +++ dso.h	2000/04/06 14:54:53	1.2
  @@ -72,11 +72,11 @@
   	{
   	const char *name;
   	/* Loads a shared library */
  -	int (*dso_load)(DSO *dso, char *filename);
  +	int (*dso_load)(DSO *dso, const char *filename);
   	/* Unloads a shared library */
   	int (*dso_unload)(DSO *dso);
   	/* Binds a function, variable, or whatever */
  -	int (*dso_bind)(DSO *dso, char *symname, void **symptr);
  +	int (*dso_bind)(DSO *dso, const char *symname, void **symptr);
   
   /* I don't think this would actually be used in any circumstances. */
   #if 0
  @@ -120,13 +120,13 @@
   DSO_METHOD *DSO_set_method(DSO *dso, DSO_METHOD *meth);
   
   /* The all-singing all-dancing load function, you normally pass NULL
  - * for the last two parameters. Use DSO_up and DSO_free for reference
  - * count handling. */
  -DSO *DSO_load(DSO *dso, char *filename, DSO_METHOD *meth);
  + * for the first and third parameters. Use DSO_up and DSO_free for
  + * reference count handling. */
  +DSO *DSO_load(DSO *dso, const char *filename, DSO_METHOD *meth);
   
   /* This function binds to a function, variable, whatever inside a
    * shared library. */
  -void *DSO_bind(DSO *dso, char *symname);
  +void *DSO_bind(DSO *dso, const char *symname);
   
   /* This method is the default, but will beg, borrow, or steal whatever
    * method should be the default on any particular platform (including
  
  Index: dso_dl.c
  ===================================================================
  RCS file: /e/openssl/cvs/openssl/crypto/dso/dso_dl.c,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- dso_dl.c	2000/04/04 21:57:11	1.1
  +++ dso_dl.c	2000/04/06 14:54:54	1.2
  @@ -69,9 +69,9 @@
   
   #include <dl.h>
   
  -static int dl_load(DSO *dso, char *filename);
  +static int dl_load(DSO *dso, const char *filename);
   static int dl_unload(DSO *dso);
  -static int dl_bind(DSO *dso, char *symname, void **symptr);
  +static int dl_bind(DSO *dso, const char *symname, void **symptr);
   #if 0
   static int dl_unbind(DSO *dso, char *symname, void *symptr);
   static int dl_init(DSO *dso);
  @@ -102,7 +102,7 @@
    * type so the cast is safe.
    */
   
  -static int dl_load(DSO *dso, char *filename)
  +static int dl_load(DSO *dso, const char *filename)
   	{
   	shl_t ptr;
   
  @@ -148,7 +148,7 @@
   	return(1);
   	}
   
  -static int dl_bind(DSO *dso, char *symname, void **symptr)
  +static int dl_bind(DSO *dso, const char *symname, void **symptr)
   	{
   	shl_t ptr;
   	void *sym;
  
  Index: dso_dlfcn.c
  ===================================================================
  RCS file: /e/openssl/cvs/openssl/crypto/dso/dso_dlfcn.c,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- dso_dlfcn.c	2000/04/06 07:09:45	1.2
  +++ dso_dlfcn.c	2000/04/06 14:54:54	1.3
  @@ -71,9 +71,9 @@
   #include <dlfcn.h>
   #endif
   
  -static int dlfcn_load(DSO *dso, char *filename);
  +static int dlfcn_load(DSO *dso, const char *filename);
   static int dlfcn_unload(DSO *dso);
  -static int dlfcn_bind(DSO *dso, char *symname, void **symptr);
  +static int dlfcn_bind(DSO *dso, const char *symname, void **symptr);
   #if 0
   static int dlfcn_unbind(DSO *dso, char *symname, void *symptr);
   static int dlfcn_init(DSO *dso);
  @@ -102,7 +102,7 @@
    * (i) the handle (void*) returned from dlopen().
    */
   
  -static int dlfcn_load(DSO *dso, char *filename)
  +static int dlfcn_load(DSO *dso, const char *filename)
   	{
   	void *ptr;
   
  @@ -148,7 +148,7 @@
   	return(1);
   	}
   
  -static int dlfcn_bind(DSO *dso, char *symname, void **symptr)
  +static int dlfcn_bind(DSO *dso, const char *symname, void **symptr)
   	{
   	void *ptr, *sym;
   
  
  Index: dso_lib.c
  ===================================================================
  RCS file: /e/openssl/cvs/openssl/crypto/dso/dso_lib.c,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- dso_lib.c	2000/04/04 21:57:11	1.1
  +++ dso_lib.c	2000/04/06 14:54:54	1.2
  @@ -187,7 +187,7 @@
   	return(1);
   	}
   
  -DSO *DSO_load(DSO *dso, char *filename, DSO_METHOD *meth)
  +DSO *DSO_load(DSO *dso, const char *filename, DSO_METHOD *meth)
   	{
   	DSO *ret;
   	int allocated = 0;
  @@ -227,7 +227,7 @@
   	return(ret);
   	}
   
  -void *DSO_bind(DSO *dso, char *symname)
  +void *DSO_bind(DSO *dso, const char *symname)
   	{
   	void *ret = NULL;
   
  
  Index: dso_win32.c
  ===================================================================
  RCS file: /e/openssl/cvs/openssl/crypto/dso/dso_win32.c,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- dso_win32.c	2000/04/04 21:57:11	1.1
  +++ dso_win32.c	2000/04/06 14:54:54	1.2
  @@ -67,9 +67,9 @@
   	}
   #else
   
  -static int win32_load(DSO *dso, char *filename);
  +static int win32_load(DSO *dso, const char *filename);
   static int win32_unload(DSO *dso);
  -static int win32_bind(DSO *dso, char *symname, void **symptr);
  +static int win32_bind(DSO *dso, const char *symname, void **symptr);
   #if 0
   static int win32_unbind(DSO *dso, char *symname, void *symptr);
   static int win32_init(DSO *dso);
  @@ -99,7 +99,7 @@
    *      LoadLibrary(), and copied.
    */
   
  -static int win32_load(DSO *dso, char *filename)
  +static int win32_load(DSO *dso, const char *filename)
   	{
   	HINSTANCE h, *p;
   
  @@ -159,7 +159,7 @@
   	return(1);
   	}
   
  -static int win32_bind(DSO *dso, char *symname, void **symptr)
  +static int win32_bind(DSO *dso, const char *symname, void **symptr)
   	{
   	HINSTANCE *ptr;
   	void *sym;
  
  
______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
CVS Repository Commit List                     openssl-cvs@openssl.org
Automated List Manager                           majordomo@openssl.org

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

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