xmlto/xmlto-codecleanup.patch
Martin Pluskal 755d441a56 Accepting request 586502 from home:avindra
- update to 0.0.28:
  - fix broken temp files removal
  - do not detect links browser as elinks
- includes 0.0.27:
  - remove several bashisms in scripts
  - new option --profile for preprocessing documents with
    profiling stylesheet
  - fix several potential crashes in xmlif
- cleanup with spec-cleaner
- switch urls to new fedora upstream
- patches:
  * rebase xmlto-xsltopts.patch
  * format xmlto-codecleanup.patch for -p1
  * format xmlto-nonvoid.patch for -p1
  * drop xmlto-overflow.patch (xmlif.c is regenerated anyway)
  * drop xmlto-lynx-empty-file.patch (obsolete)
  * renumber patches

OBS-URL: https://build.opensuse.org/request/show/586502
OBS-URL: https://build.opensuse.org/package/show/Publishing/xmlto?expand=0&rev=28
2018-03-14 07:56:25 +00:00

45 lines
1016 B
Diff

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