apr-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From traw...@apache.org
Subject cvs commit: apr/threadproc/unix signals.c
Date Wed, 28 Feb 2001 02:16:08 GMT
trawick     01/02/27 18:16:07

  Modified:    threadproc/unix signals.c
  Log:
  Fix some warnings dealing with the fact that void * isn't compatible
  with a function pointer.
  
  Revision  Changes    Path
  1.28      +2 -2      apr/threadproc/unix/signals.c
  
  Index: signals.c
  ===================================================================
  RCS file: /home/cvs/apr/threadproc/unix/signals.c,v
  retrieving revision 1.27
  retrieving revision 1.28
  diff -u -r1.27 -r1.28
  --- signals.c	2001/02/27 18:33:07	1.27
  +++ signals.c	2001/02/28 02:16:07	1.28
  @@ -271,7 +271,7 @@
   static void *signal_thread_func(void *signal_handler)
   {
       sigset_t sig_mask;
  -    int (*sig_func)(int signum) = signal_handler;
  +    int (*sig_func)(int signum) = (int (*)(int))signal_handler;
   
       /* This thread will be the one responsible for handling signals */
       sigfillset(&sig_mask);
  @@ -341,7 +341,7 @@
                                                 int (*signal_handler)(int signum),
                                                      apr_pool_t *p)
   {
  -    return apr_thread_create(td, tattr, signal_thread_func, signal_handler, p);
  +    return apr_thread_create(td, tattr, signal_thread_func, (void *)signal_handler, p);
   }
   
   #endif
  
  
  

Mime
View raw message