Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
Publishing
discount2
discount2-pointer-type-mismatch.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File discount2-pointer-type-mismatch.patch of Package discount2
--- main.c | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) Index: discount-2.2.7d/main.c =================================================================== --- discount-2.2.7d.orig/main.c +++ discount-2.2.7d/main.c @@ -100,14 +100,15 @@ free_it(char *object, void *ctx) } char * -external_codefmt(char *src, int len, char *lang) +external_codefmt(const char *src, const int len, void *lang) { int extra = 0; int i, x; char *res; + char *ec_lang = (char *)lang; - if ( lang == 0 ) - lang = "generic_code"; + if ( ec_lang == 0 ) + ec_lang = "generic_code"; for ( i=0; i < len; i++) { if ( src[i] == '&' ) @@ -117,11 +118,11 @@ external_codefmt(char *src, int len, cha } /* 80 characters for the format wrappers */ - if ( (res = malloc(len+extra+80+strlen(lang))) ==0 ) + if ( (res = malloc(len+extra+80+strlen(ec_lang))) ==0 ) /* out of memory? drat! */ return 0; - sprintf(res, "<pre><code class=\"%s\">\n", lang); + sprintf(res, "<pre><code class=\"%s\">\n", ec_lang); x = strlen(res); for ( i=0; i < len; i++ ) { switch (src[i]) {
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor