Browse Source

remove warnings

master
parent
commit
e1db6ea29e
  1. 24
      discount/discount.patch
  2. 2
      discount/discount.spec

24
discount/discount.patch

@ -0,0 +1,24 @@
Index: generate.c
--- generate.c.orig 2010-03-25 17:04:57.000000000 +0100
+++ generate.c 2010-08-10 11:05:33.000000000 +0200
@@ -1218,7 +1218,7 @@
Qprintf(f, "<h%d", pp->hnumber);
if ( f->flags & TOC ) {
Qprintf(f, " id=\"", pp->hnumber);
- mkd_string_to_anchor(T(pp->text->text), S(pp->text->text), Qchar, f);
+ mkd_string_to_anchor(T(pp->text->text), S(pp->text->text), (void (*)(int, void *))Qchar, f);
Qchar('"', f);
}
Qchar('>', f);
Index: toc.c
--- toc.c.orig 2010-03-25 17:04:57.000000000 +0100
+++ toc.c 2010-08-10 11:05:53.000000000 +0200
@@ -50,7 +50,7 @@
++last_hnumber;
}
Csprintf(&res, "%*s<li><a href=\"#", srcp->hnumber, "");
- mkd_string_to_anchor(T(srcp->text->text), S(srcp->text->text), Csputc, &res);
+ mkd_string_to_anchor(T(srcp->text->text), S(srcp->text->text), (void (*)(int, void *))Csputc, &res);
Csprintf(&res, "\">");
Csreparse(&res, T(srcp->text->text), S(srcp->text->text), 0);
Csprintf(&res, "</a>");

2
discount/discount.spec

@ -36,6 +36,7 @@ Release: 20100810
# list of sources
Source0: http://www.pell.portland.or.us/~orc/Code/discount/discount-%{version}.tar.gz
Patch0: discount.patch
# build information
BuildPreReq: OpenPKG, openpkg >= 20100101
@ -54,6 +55,7 @@ PreReq: OpenPKG, openpkg >= 20100101
%prep
%setup -q
%patch -p0
%build
CC="%{l_cc}" \

Loading…
Cancel
Save