mirror of
https://github.com/owasp-modsecurity/ModSecurity.git
synced 2025-09-29 11:16:33 +03:00
Code cosmetics: Reduces the amounts of warning.
Removes the warnings by adding missing headers and removed unused variables.
This commit is contained in:
@@ -67,7 +67,7 @@ char *normalize_path(modsec_rec *msr, char *input) {
|
||||
if(uri->path) {
|
||||
char *Uri = NULL;
|
||||
int bytes = 0;
|
||||
int i;
|
||||
/*int i;*/
|
||||
char *relative_link = NULL;
|
||||
char *filename = NULL;
|
||||
char *relative_path = NULL;
|
||||
|
@@ -53,5 +53,8 @@ int DSOLOCAL json_complete(modsec_rec *msr, char **error_msg);
|
||||
|
||||
apr_status_t DSOLOCAL json_cleanup(modsec_rec *msr);
|
||||
|
||||
int DSOLOCAL json_process_chunk(modsec_rec *msr, const char *buf,
|
||||
unsigned int size, char **error_msg);
|
||||
|
||||
#endif
|
||||
#endif
|
||||
|
@@ -227,7 +227,6 @@ int DSOLOCAL msc_status_engine_mac_address (unsigned char *mac)
|
||||
PIP_ADAPTER_INFO pAdapterInfo;
|
||||
PIP_ADAPTER_INFO pAdapter = NULL;
|
||||
DWORD dwRetVal = 0;
|
||||
UINT i;
|
||||
|
||||
ULONG ulOutBufLen = sizeof (IP_ADAPTER_INFO);
|
||||
pAdapterInfo = (IP_ADAPTER_INFO *)malloc(sizeof (IP_ADAPTER_INFO));
|
||||
|
@@ -2053,7 +2053,6 @@ static int msre_op_detectXSS_execute(modsec_rec *msr, msre_rule *rule, msre_var
|
||||
char **error_msg) {
|
||||
|
||||
int is_xss;
|
||||
int capture;
|
||||
|
||||
is_xss = libinjection_xss(var->value, var->value_len);
|
||||
|
||||
|
@@ -1993,7 +1993,6 @@ static int var_full_request_generate(modsec_rec *msr, msre_var *var,
|
||||
failed_fill_buffer:
|
||||
failed_not_enough_mem:
|
||||
failed_measure_buffer:
|
||||
no_buffer:
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user