apr-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From r..@apache.org
Subject cvs commit: apr/dso/unix dso.c
Date Fri, 27 Apr 2001 00:16:03 GMT
rbb         01/04/26 17:16:03

  Modified:    .        CHANGES
               dso/unix dso.c
  Log:
  Fix DSO support on HPUX.  We have to use ==, not = and it helps to return
  errno so that debugging is easier.
  
  Revision  Changes    Path
  1.96      +4 -0      apr/CHANGES
  
  Index: CHANGES
  ===================================================================
  RCS file: /home/cvs/apr/CHANGES,v
  retrieving revision 1.95
  retrieving revision 1.96
  diff -u -d -b -w -u -r1.95 -r1.96
  --- CHANGES	2001/04/19 07:18:35	1.95
  +++ CHANGES	2001/04/27 00:16:02	1.96
  @@ -1,5 +1,9 @@
   Changes with APR b1  
   
  +  *) Fix DSO code on HP/UX.  We have to use == not =, and it makes more
  +     sense to actually return errno, so that the return code means 
  +     something.  [Ryan Bloom]
  +
     *) Clean up conditionals in unix DSO code so that we decide based on
        the dynamic loading implementation, which we noticed at configure
        time, instead of by operating system.
  
  
  
  1.39      +2 -2      apr/dso/unix/dso.c
  
  Index: dso.c
  ===================================================================
  RCS file: /home/cvs/apr/dso/unix/dso.c,v
  retrieving revision 1.38
  retrieving revision 1.39
  diff -u -d -b -w -u -r1.38 -r1.39
  --- dso.c	2001/04/25 05:26:39	1.38
  +++ dso.c	2001/04/27 00:16:03	1.39
  @@ -180,8 +180,8 @@
       status = shl_findsym((shl_t *)&handle->handle, symname, TYPE_PROCEDURE, &symaddr);
       if (status == -1 && errno == 0) /* try TYPE_DATA instead */
           status = shl_findsym((shl_t *)&handle->handle, symname, TYPE_DATA, &symaddr);
  -    if (status = -1)
  -        return APR_EINIT;
  +    if (status == -1)
  +        return errno;
       *ressym = symaddr;
       return APR_SUCCESS;
   
  
  
  

Mime
View raw message