LCOV - code coverage report
Current view: top level - src/client - delete.c (source / functions) Hit Total Coverage
Test: burp-coverage-clean.info Lines: 0 8 0.0 %
Date: 2017-08-09 Functions: 0 1 0.0 %

          Line data    Source code
       1             : #include "../burp.h"
       2             : #include "../asfd.h"
       3             : #include "../cmd.h"
       4             : #include "../log.h"
       5             : #include "delete.h"
       6             : 
       7           0 : int do_delete_client(struct asfd *asfd, struct conf **confs)
       8             : {
       9           0 :         char msg[128]="";
      10           0 :         const char *backup=get_string(confs[OPT_BACKUP]);
      11           0 :         snprintf(msg, sizeof(msg), "Delete %s", backup?backup:"");
      12           0 :         if(asfd->write_str(asfd, CMD_GEN, msg)
      13           0 :           || asfd_read_expect(asfd, CMD_GEN, "ok"))
      14             :                 return -1;
      15           0 :         logp("Deletion in progress\n");
      16           0 :         return 0;
      17             : }

Generated by: LCOV version 1.10