Bug 2031

Summary: Double included headers
Product: unbound Reporter: Дилян Палаузов <dpa-nlnetlabs>
Component: serverAssignee: unbound team <unbound-team>
Status: NEW ---    
Severity: enhancement CC: cathya, ralph
Priority: P5    
Version: 1.6.7   
Hardware: x86_64   
OS: Linux   

Description Дилян Палаузов 2017-10-25 13:58:03 CEST
deheader (ttps://gitlab.com/esr/deheader.git) says:

deheader: ./services/localzone.c has more than one inclusion of "util/config_file.h"
deheader: ./testcode/unitmain.c has more than one inclusion of "util/config_file.h"
deheader: ./util/configlexer.c has more than one inclusion of <string.h>
"./util/ub_event.c", line 442: unbalanced #endif

The last meaning that in ub_event.c:L430 the #ifdef is not aligned to the first column and the second last message states that flex inserts #include <string.h>, so line 17 from configlexer.lex can be removed.
Comment 1 Ralph Dolmans 2017-10-25 15:30:47 CEST
Hello,

Thanks again for your report! I deleted the duplicate include statements.

-- Ralph