apr-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From traw...@apache.org
Subject cvs commit: apr-util/hooks apr_hooks.c
Date Mon, 29 Jan 2001 19:47:55 GMT
trawick     01/01/29 11:47:53

  Modified:    hooks    apr_hooks.c
  Log:
  use a cast to resolve the discrepancy between void(*)(void)" and "void*"
  
  Revision  Changes    Path
  1.35      +2 -2      apr-util/hooks/apr_hooks.c
  
  Index: apr_hooks.c
  ===================================================================
  RCS file: /home/cvs/apr-util/hooks/apr_hooks.c,v
  retrieving revision 1.34
  retrieving revision 1.35
  diff -u -r1.34 -r1.35
  --- apr_hooks.c	2001/01/28 03:37:30	1.34
  +++ apr_hooks.c	2001/01/29 19:47:48	1.35
  @@ -336,7 +336,7 @@
   {
       if(!s_phOptionalFunctions)
   	return NULL;
  -    return apr_hash_get(s_phOptionalFunctions,szName,strlen(szName));
  +    return (void(*)(void))apr_hash_get(s_phOptionalFunctions,szName,strlen(szName));
   }
   
   APU_DECLARE_NONSTD(void) apr_register_optional_fn(const char *szName,
  @@ -344,7 +344,7 @@
   {
       if(!s_phOptionalFunctions)
   	s_phOptionalFunctions=apr_make_hash(apr_global_hook_pool);
  -    apr_hash_set(s_phOptionalFunctions,szName,strlen(szName),pfn);
  +    apr_hash_set(s_phOptionalFunctions,szName,strlen(szName),(void *)pfn);
   }
   
   #if 0
  
  
  

Mime
View raw message