s6

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

ftrigr_end.c (315B)


      1 /* ISC license. */
      2 
      3 #include <stdint.h>
      4 #include <skalibs/genalloc.h>
      5 #include <skalibs/gensetdyn.h>
      6 #include <skalibs/textclient.h>
      7 #include <s6/ftrigr.h>
      8 
      9 void ftrigr_end (ftrigr_ref a)
     10 {
     11   gensetdyn_free(&a->data) ;
     12   genalloc_free(uint16_t, &a->list) ;
     13   textclient_end(&a->connection) ;
     14   *a = ftrigr_zero ;
     15 }