skalibs

Mirror/fork of https://skarnet.org/software/skalibs/
git clone https://ccx.te2000.cz/git/skalibs
Log | Files | Refs | README | LICENSE

cdb_free.c (192B)


      1 /* ISC license. */
      2 
      3 #include <skalibs/posixplz.h>
      4 #include <skalibs/cdb.h>
      5 
      6 extern void cdb_free (cdb *c)
      7 {
      8   if (c->map)
      9   {
     10     munmap_void((void *)c->map, c->size) ;
     11     c->map = 0 ;
     12   }
     13 }