summaryrefslogtreecommitdiff
path: root/app-text/xml2doc/files
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
committerV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
commit4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch)
treeba5f07bf3f9d22d82e54a462313f5d244036c768 /app-text/xml2doc/files
reinit the tree, so we can have metadata
Diffstat (limited to 'app-text/xml2doc/files')
-rw-r--r--app-text/xml2doc/files/xml2doc-pointer_fix.patch20
1 files changed, 20 insertions, 0 deletions
diff --git a/app-text/xml2doc/files/xml2doc-pointer_fix.patch b/app-text/xml2doc/files/xml2doc-pointer_fix.patch
new file mode 100644
index 000000000000..b6adabe3c1a3
--- /dev/null
+++ b/app-text/xml2doc/files/xml2doc-pointer_fix.patch
@@ -0,0 +1,20 @@
+diff -NurdpB xml2doc/src/output_info.c xml2doc-patched/src/output_info.c
+--- xml2doc/src/output_info.c 2003-04-25 05:11:27.000000000 -0500
++++ xml2doc-patched/src/output_info.c 2007-03-14 15:07:59.000000000 -0500
+@@ -9,11 +9,11 @@ void output_info()
+ *subject = xmlGetProp(Doc[n].cur,"subject"),
+ *keywords = xmlGetProp(Doc[n].cur,"keywords"),
+ *trapped = xmlGetProp(Doc[n].cur,"trapped");
+- struct time_t *timet;
+- struct tm *clk;
+-
+- time((time_t *)&timet);
+- clk=localtime((const time_t *)&timet);
++ time_t timet;
++ struct tm *clk;
++
++ time(&timet);
++ clk=localtime(&timet);
+
+ switch(DocS.output)
+ {