|
|
62c3e41 |
From 880c6d51195f68e63686a1bf814d19d4ad112686 Mon Sep 17 00:00:00 2001
|
|
|
62c3e41 |
From: =?UTF-8?q?Petr=20P=C3=ADsa=C5=99?= <ppisar@redhat.com>
|
|
|
62c3e41 |
Date: Wed, 7 Mar 2018 14:45:29 +0100
|
|
|
62c3e41 |
Subject: [PATCH 1/3] Fix compiler warnings about unused variables and implicit
|
|
|
62c3e41 |
declarations
|
|
|
62c3e41 |
MIME-Version: 1.0
|
|
|
62c3e41 |
Content-Type: text/plain; charset=UTF-8
|
|
|
62c3e41 |
Content-Transfer-Encoding: 8bit
|
|
|
62c3e41 |
|
|
|
62c3e41 |
This patch fixes these warnings:
|
|
|
62c3e41 |
|
|
|
62c3e41 |
src/xmlparser.c:178:4: warning: implicit declaration of function ‘LOG’
|
|
|
62c3e41 |
src/xmlparser.c:298:7: warning: unused variable ‘this_mac_p’
|
|
|
62c3e41 |
src/xmlparser.c:296:8: warning: unused variable ‘mac_string_p’
|
|
|
62c3e41 |
src/xmlparser.c:296:20: warning: unused variable ‘this_mac’
|
|
|
62c3e41 |
|
|
|
62c3e41 |
Signed-off-by: Petr Písař <ppisar@redhat.com>
|
|
|
62c3e41 |
---
|
|
|
62c3e41 |
src/log.h | 1 +
|
|
|
62c3e41 |
src/xmlparser.c | 3 ---
|
|
|
62c3e41 |
2 files changed, 1 insertion(+), 3 deletions(-)
|
|
|
62c3e41 |
|
|
|
62c3e41 |
diff --git a/src/log.h b/src/log.h
|
|
|
62c3e41 |
index 0add969..ee3460b 100644
|
|
|
62c3e41 |
--- a/src/log.h
|
|
|
62c3e41 |
+++ b/src/log.h
|
|
|
62c3e41 |
@@ -24,5 +24,6 @@
|
|
|
62c3e41 |
|
|
|
62c3e41 |
|
|
|
62c3e41 |
FILE *log_file;
|
|
|
62c3e41 |
+void LOG(const char *fmt, ...);
|
|
|
62c3e41 |
|
|
|
62c3e41 |
#endif
|
|
|
62c3e41 |
diff --git a/src/xmlparser.c b/src/xmlparser.c
|
|
|
62c3e41 |
index 2a8f0b4..3a5052e 100644
|
|
|
62c3e41 |
--- a/src/xmlparser.c
|
|
|
62c3e41 |
+++ b/src/xmlparser.c
|
|
|
62c3e41 |
@@ -293,9 +293,6 @@ u08 extractMacAddress(char *mac_string, apr_hash_t **table, apr_pool_t *pool)
|
|
|
62c3e41 |
u08 extractRuleMac(xmlNode *xml_rule, struct rule *this_rule)
|
|
|
62c3e41 |
{
|
|
|
62c3e41 |
char *mac_string = NULL;
|
|
|
62c3e41 |
- char *mac_string_p = NULL;
|
|
|
62c3e41 |
- struct macaddress this_mac;
|
|
|
62c3e41 |
- u08 *this_mac_p = &(this_mac.cell[0]);
|
|
|
62c3e41 |
|
|
|
62c3e41 |
mac_string = (char *)xmlGetProp(xml_rule, (xmlChar *)"mac");
|
|
|
62c3e41 |
if(mac_string != NULL)
|
|
|
62c3e41 |
--
|
|
|
62c3e41 |
2.13.6
|
|
|
62c3e41 |
|