apr-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From r..@apache.org
Subject cvs commit: apr/mmap/unix mmap.c
Date Thu, 02 Aug 2001 04:26:54 GMT
rbb         01/08/01 21:26:54

  Modified:    mmap/unix mmap.c
  Log:
  Add APR_DECLARE to the functions in mmap.c
  Submitted by:	Sterling Hughes <sterling@designmultimedia.com>
  
  Revision  Changes    Path
  1.36      +7 -6      apr/mmap/unix/mmap.c
  
  Index: mmap.c
  ===================================================================
  RCS file: /home/cvs/apr/mmap/unix/mmap.c,v
  retrieving revision 1.35
  retrieving revision 1.36
  diff -u -r1.35 -r1.36
  --- mmap.c	2001/04/30 00:07:35	1.35
  +++ mmap.c	2001/08/02 04:26:53	1.36
  @@ -101,9 +101,10 @@
       return errno;
   }
   
  -apr_status_t apr_mmap_create(apr_mmap_t **new, apr_file_t *file, 
  -                             apr_off_t offset, apr_size_t size, 
  -                             apr_int32_t flag, apr_pool_t *cont)
  +APR_DECLARE(apr_status_t) apr_mmap_create(apr_mmap_t **new, 
  +                                          apr_file_t *file, apr_off_t offset, 
  +                                          apr_size_t size, apr_int32_t flag, 
  +                                          apr_pool_t *cont)
   {
       void *mm;
   #ifdef BEOS
  @@ -112,7 +113,7 @@
   #else
       apr_int32_t native_flags = 0;
   #endif
  -   
  +
       if (file == NULL || file->filedes == -1 || file->buffered)
           return APR_EBADF;
       (*new) = (apr_mmap_t *)apr_pcalloc(cont, sizeof(apr_mmap_t));
  @@ -158,14 +159,14 @@
       (*new)->mm = mm;
       (*new)->size = size;
       (*new)->cntxt = cont;
  -    
  +
       /* register the cleanup... */
       apr_pool_cleanup_register((*new)->cntxt, (void*)(*new), mmap_cleanup,
                apr_pool_cleanup_null);
       return APR_SUCCESS;
   }
   
  -apr_status_t apr_mmap_delete(apr_mmap_t *mmap)
  +APR_DECLARE(apr_status_t) apr_mmap_delete(apr_mmap_t *mmap)
   {
       apr_status_t rv;
   
  
  
  

Mime
View raw message