Code cosmetics: Reduces the amounts of warning.

Removes the warnings by adding missing headers and removed unused variables.
This commit is contained in:
Felipe Zimmerle
2014-03-26 18:21:42 -07:00
parent 1e63e49db4
commit 385a2828e8
7 changed files with 16 additions and 12 deletions

View File

@@ -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;

View File

@@ -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

View File

@@ -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));

View File

@@ -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);

View File

@@ -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;
}