summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnas Nashif <anas.nashif@intel.com>2012-11-15 17:52:27 -0800
committerAnas Nashif <anas.nashif@intel.com>2012-11-15 17:52:27 -0800
commitf490764c5cea3c3dd45d6d45eecdae1a3662d193 (patch)
tree6a5c392b402f67bd2e492b48be61a1d962e4028d
parent760ff1dc147ded36b1235fd5988742d363a8c63d (diff)
downloadxmlto-f490764c5cea3c3dd45d6d45eecdae1a3662d193.tar.gz
xmlto-f490764c5cea3c3dd45d6d45eecdae1a3662d193.tar.bz2
xmlto-f490764c5cea3c3dd45d6d45eecdae1a3662d193.zip
xmlto-codecleanup
===================================================================
-rw-r--r--xmlif/xmlif.l13
1 files changed, 8 insertions, 5 deletions
diff --git a/xmlif/xmlif.l b/xmlif/xmlif.l
index c51e7ca..38f19a0 100644
--- a/xmlif/xmlif.l
+++ b/xmlif/xmlif.l
@@ -43,7 +43,7 @@
static char **selections; /* selection tokens */
static int nselections; /* number of selections */
-static ifsense; /* sense of last `if' or unless seen */
+static int ifsense; /* sense of last `if' or unless seen */
static char *attribute; /* last attribute scanned */
struct stack_t {
@@ -84,7 +84,7 @@ static void pop_level(void)
}
}
-static void stash_attribute(char *attr)
+static void stash_attribute(const char *attr)
/* stash an attribute away for comparison */
{
#ifdef DEBUG
@@ -176,7 +176,7 @@ static void process_value(char *val)
end->suppressed = suppress(attribute, val);
}
-static void process_else()
+static void process_else(void)
/* process <?xmlif else> tag */
{
end->suppressed = end->matched;
@@ -230,9 +230,12 @@ WS [ \t\n]*
#include "config.h"
-int yywrap() {exit(0);};
+int yywrap(void)
+{
+ exit(0);
+}
-main(int argc, char *argv[])
+int main(int argc, char *argv[])
{
int i;