Skip to content

Commit 7b56db1

Browse files
author
gberkes
committed
Clean up 'return' never will be executed.
1 parent 985cb94 commit 7b56db1

File tree

2 files changed

+0
-5
lines changed

2 files changed

+0
-5
lines changed

examples/reading_logs_via_rule_message/reading_logs_via_rule_message.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,6 @@ static void *process_request(void *data) {
103103
}
104104

105105
pthread_exit(NULL);
106-
return NULL;
107106
}
108107

109108

@@ -165,7 +164,6 @@ class ReadingLogsViaRuleMessage {
165164

166165
delete rules;
167166
delete modsec;
168-
pthread_exit(NULL);
169167
return 0;
170168
}
171169

examples/reading_logs_via_rule_message/simple_request.cc

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,5 @@ int main(int argc, char **argv) {
3535
response_headers, response_body, ip, rules);
3636
rlvrm.process();
3737

38-
39-
40-
pthread_exit(NULL);
4138
return 0;
4239
}

0 commit comments

Comments
 (0)