httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From stodd...@apache.org
Subject cvs commit: httpd-2.0/modules/experimental cache_hash.c
Date Mon, 06 May 2002 13:12:03 GMT
stoddard    02/05/06 06:12:03

  Modified:    modules/experimental cache_hash.c
  Log:
  Cast the constness away when the object is returned to the caller/owner of
  the object.
  
  Revision  Changes    Path
  1.4       +3 -3      httpd-2.0/modules/experimental/cache_hash.c
  
  Index: cache_hash.c
  ===================================================================
  RCS file: /home/cvs/httpd-2.0/modules/experimental/cache_hash.c,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- cache_hash.c	6 May 2002 01:10:24 -0000	1.3
  +++ cache_hash.c	6 May 2002 13:12:03 -0000	1.4
  @@ -307,10 +307,10 @@
               tval = (*hep)->val;
               (*hep)->val = val;
           }
  -        /* Return the object just removed from the cache
  -         * to let the caller clean it up
  +        /* Return the object just removed from the cache to let the 
  +         * caller clean it up. Cast the constness away upon return.
            */
  -        return tval;
  +        return (void *) tval;
       }
       /* else key not present and val==NULL */
       return NULL;
  
  
  

Mime
View raw message